Skip to content

Commit

Permalink
diff.c: fixup garding of config parser from value=NULL
Browse files Browse the repository at this point in the history
Christian Couder noticed that there still were a handcrafted error()
call that we should have converted to config_error_nonbool() where
parse_lldiff_command() parses the configuration file.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 15, 2008
1 parent d8e8757 commit 5880711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static int parse_lldiff_command(const char *var, const char *ep, const char *val
}

if (!value)
return error("%s: lacks value", var);
return config_error_nonbool(var);
drv->cmd = strdup(value);
return 0;
}
Expand Down

0 comments on commit 5880711

Please sign in to comment.