git-fetch: do not look into $GIT_DIR/refs to see if a tag exists.
[gitweb.git] / interpolate.c
index 62701d8435e6c113bf683c72a038874ed1acc2de..5d9d1889f088c64131cd3c116e6a16876ce95db8 100644 (file)
@@ -8,10 +8,10 @@
 #include "interpolate.h"
 
 
-void interp_set_entry(struct interp *table, int slot, char *value)
+void interp_set_entry(struct interp *table, int slot, const char *value)
 {
        char *oldval = table[slot].value;
-       char *newval = value;
+       char *newval = NULL;
 
        if (oldval)
                free(oldval);