Code

cleanup: use internal memory allocation wrapper functions everywhere
[git.git] / attr.c
diff --git a/attr.c b/attr.c
index fe38fcc36bcdbdfba5c06128aa41247125169e37..0793859b71aa9a425005665a118bec1ab54fec37 100644 (file)
--- a/attr.c
+++ b/attr.c
@@ -533,7 +533,7 @@ static void bootstrap_attr_stack(void)
 
                if (!is_bare_repository() || direction == GIT_ATTR_INDEX) {
                        elem = read_attr(GITATTRIBUTES_FILE, 1);
-                       elem->origin = strdup("");
+                       elem->origin = xstrdup("");
                        elem->prev = attr_stack;
                        attr_stack = elem;
                        debug_push(elem);