Make gc a builtin.
[gitweb.git] / config.c
index a3c7b772bce1d302e60bbf02212bb4ad4da0ee7b..d537311ae1d4321c3f5f90930f7451262caf2ae5 100644 (file)
--- a/config.c
+++ b/config.c
@@ -351,12 +351,12 @@ int git_default_config(const char *var, const char *value)
        }
 
        if (!strcmp(var, "i18n.commitencoding")) {
-               git_commit_encoding = strdup(value);
+               git_commit_encoding = xstrdup(value);
                return 0;
        }
 
        if (!strcmp(var, "i18n.logoutputencoding")) {
-               git_log_output_encoding = strdup(value);
+               git_log_output_encoding = xstrdup(value);
                return 0;
        }