summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Christian Couder <chriscool@tuxfamily.org>2008-02-14 06:50:00 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-02-15 14:11:28 -0800
commit8ca496e97d100195c9015f4da8ddaad693e91961 (patch)
treedf8eb940de5f434d5edef1071c554c62a45a4d5e
parentdiff.c: fixup garding of config parser from value=NULL (diff)
downloadtgif-8ca496e97d100195c9015f4da8ddaad693e91961.tar.xz
diff.c: replace a 'strdup' with 'xstrdup'.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 2aaace890c..047310fc94 100644
--- a/diff.c
+++ b/diff.c
@@ -88,7 +88,7 @@ static int parse_lldiff_command(const char *var, const char *ep, const char *val
if (!value)
return config_error_nonbool(var);
- drv->cmd = strdup(value);
+ drv->cmd = xstrdup(value);
return 0;
}