gitweb: Correct typo: '==' instead of 'eq' in git_difftree_body
[gitweb.git] / builtin-upload-tar.c
index 7b401bbb779ea0cc8bca3720eab612af2b50a4c3..06a945a4b16b1b604847527fbac3aca3c7fa3a73 100644 (file)
@@ -53,7 +53,7 @@ int cmd_upload_tar(int argc, const char **argv, const char *prefix)
                        return nak("expected (optional) base");
                if (buf[len-1] == '\n')
                        buf[--len] = 0;
-               base = strdup(buf + 5);
+               base = xstrdup(buf + 5);
                len = packet_read_line(0, buf, sizeof(buf));
        }
        if (len)