sha1_file: drop free_pack_by_name
[gitweb.git] / submodule-config.c
index db1847ff6893de6329bf60729b72e8f6a33188b5..077db4054f7b38b31d9c6f11e2b589e9111d4a8c 100644 (file)
@@ -377,7 +377,7 @@ static int gitmodule_sha1_from_commit(const unsigned char *commit_sha1,
        int ret = 0;
 
        if (is_null_sha1(commit_sha1)) {
-               hashcpy(gitmodules_sha1, null_sha1);
+               hashclr(gitmodules_sha1);
                return 1;
        }