coccinelle: convert hashcpy() with null_sha1 to hashclr()
[gitweb.git] / submodule-config.c
index debab294d421675cdebb129b257808614f607a09..a6c2710f916375a8d922ca0a27cf894472427533 100644 (file)
@@ -368,7 +368,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;
        }