From: Nick Bowler Date: Wed, 19 Jun 2013 00:43:36 +0000 (-0400) Subject: lbximg: Fix exit status in identify mode. X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/commitdiff_plain/cc1912aedeeb1c3c5e01747eb122790d7036d6a0 lbximg: Fix exit status in identify mode. The tool was always returning an exit status of failure, because in identify mode there was no case to set the exit status to success. --- diff --git a/src/lbximg.c b/src/lbximg.c index ca618ca..e4eb461 100644 --- a/src/lbximg.c +++ b/src/lbximg.c @@ -433,6 +433,9 @@ int main(int argc, char **argv) } switch (mode) { + case MODE_IDENT: + rc = 0; + break; case MODE_DECODE: rc = decode(img, palf, overf, fmt, &argv[optind]); break;