]> git.draconx.ca Git - liblbx.git/commitdiff
lbximg: Fix exit status in identify mode.
authorNick Bowler <nbowler@draconx.ca>
Wed, 19 Jun 2013 00:43:36 +0000 (20:43 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 19 Jun 2013 01:21:35 +0000 (21:21 -0400)
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.

src/lbximg.c

index ca618ca20b88dac70204f9f61c9006c95f19e339..e4eb461e5d7d5189317caea584071cd722059912 100644 (file)
@@ -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;