wincred: avoid overwriting configured variables
[gitweb.git] / diff-no-index.c
index 33e5982a1c61a5726580f40df0a07dadc7e2aaf1..798477f7e5b19e3141bd8a1e63bc650f13ad2e39 100644 (file)
@@ -202,7 +202,7 @@ void diff_no_index(struct rev_info *revs,
                        i++;
                else {
                        j = diff_opt_parse(&revs->diffopt, argv + i, argc - i);
-                       if (!j)
+                       if (j <= 0)
                                die("invalid diff option/value: %s", argv[i]);
                        i += j;
                }