From: x2003bruneau Date: Thu, 22 Feb 2007 14:46:26 +0000 (+0000) Subject: Add missing exit when no mbox is found X-Git-Tag: 1.8~93 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0eeb527ea199270b90908157c38a0832692d3071;p=banana.git Add missing exit when no mbox is found git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@211 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/mbox-helper/mbox-helper.c b/mbox-helper/mbox-helper.c index ed6d243..49f1618 100644 --- a/mbox-helper/mbox-helper.c +++ b/mbox-helper/mbox-helper.c @@ -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)) {