Add missing exit when no mbox is found
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Thu, 22 Feb 2007 14:46:26 +0000 (14:46 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:31 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@211 9869982d-c50d-0410-be91-f2a2ec7c7c7b

mbox-helper/mbox-helper.c

index ed6d243..49f1618 100644 (file)
@@ -378,6 +378,7 @@ int main(int argc, char *argv[])
     mbox = openMBox(filename);
     if (!mbox) {
         fprintf(stderr, "can't open file '%s'", filename);
+        return 1;
     }
     if ((fmid >= pmid || fmid == -1) && pos) {
         if (!goToOffset(mbox, pos, pmid)) {