Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Avoid cross-directory renames and linking on object creation
[gitweb.git]
/
interpolate.c
diff --git
a/interpolate.c
b/interpolate.c
index 6ef53f246511a1943e375d5d5913a4ec52e2c663..7f03bd99c5b66afa6cc7fa11a2430301a3042656 100644
(file)
--- a/
interpolate.c
+++ b/
interpolate.c
@@
-11,8
+11,7
@@
void interp_set_entry(struct interp *table, int slot, const char *value)
char *oldval = table[slot].value;
char *newval = NULL;
- if (oldval)
- free(oldval);
+ free(oldval);
if (value)
newval = xstrdup(value);