From 0eeb527ea199270b90908157c38a0832692d3071 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 22 Feb 2007 14:46:26 +0000 Subject: [PATCH] Add missing exit when no mbox is found git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@211 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- mbox-helper/mbox-helper.c | 1 + 1 file changed, 1 insertion(+) 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)) { -- 2.1.4