get_sha1_with_context: always initialize oc->symlink_path
[gitweb.git] / tree-walk.c
index ff776056806dd40ddfb02f566b0cbd4222d0d970..c7ecfc8560aca64d21466aa666c2cbfe12ec5ad3 100644 (file)
@@ -589,7 +589,6 @@ enum follow_symlinks_result get_tree_entry_follow_symlinks(unsigned char *tree_s
        int i;
 
        init_tree_desc(&t, NULL, 0UL);
-       strbuf_init(result_path, 0);
        strbuf_addstr(&namebuf, name);
        hashcpy(current_tree_sha1, tree_sha1);