tags 602954 + patch thanks On 02/14/2011 06:54 AM, Bernd Zeimetz wrote: > please see > https://sourceforge.net/tracker/?func=detail&atid=928518&aid=3179259&group_id=189236 > for a response from upstream to your request. I'd appreciate if you > could comment there if it works for you.
yep, that fix works for me (attached as a patch here).
Thanks for forwarding it to upstream, Bernd!
--dkg
--- zbar-0.10+doc.orig/zbarimg/zbarimg.c
+++ zbar-0.10+doc/zbarimg/zbarimg.c
@@ -247,7 +247,7 @@
int i, j;
for(i = 1; i < argc; i++) {
const char *arg = argv[i];
- if(arg[0] != '-')
+ if(arg[0] != '-' || !arg[1])
// first pass, skip images
num_images++;
else if(arg[1] != '-')
@@ -318,7 +318,7 @@
if(!arg)
continue;
- if(arg[0] != '-') {
+ if(arg[0] != '-' || !arg[1]) {
if(scan_image(arg))
return(exit_code);
}
signature.asc
Description: OpenPGP digital signature

