diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2011-09-15 23:10:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-05 13:45:31 -0700 |
commit | c28cce55e0ea1d674ccc89cadadac0bfef511384 (patch) | |
tree | 4a17b9becf814a1d212d6d283e010b688d082414 /remote.c | |
parent | 313fb010da4343eca22ee48a2cc18048d999de53 (diff) | |
download | git-c28cce55e0ea1d674ccc89cadadac0bfef511384.tar.gz |
remote: use xstrdup() instead of strdup()
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -815,7 +815,7 @@ char *apply_refspecs(struct refspec *refspecs, int nr_refspec, refspec->dst, &ret)) return ret; } else if (!strcmp(refspec->src, name)) - return strdup(refspec->dst); + return xstrdup(refspec->dst); } return NULL; } |