diff.c: replace a 'strdup' with 'xstrdup'.
authorChristian Couder <chriscool@tuxfamily.org>
Thu, 14 Feb 2008 05:50:00 +0000 (06:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Feb 2008 22:11:28 +0000 (14:11 -0800)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c

diff --git a/diff.c b/diff.c
index 2aaace890ca056b79479c3a98cb85454f3359cac..047310fc94e0ad87770f4b9244b8410f3d471053 100644 (file)
--- 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;
 }