Code

Fix sparse warnings
[git.git] / transport.c
index 00786606117feea4b33b7e632b8ff8a3c26de4e4..f1c07816e01bb0b1ad93d7665b1374e8cd36e6cb 100644 (file)
@@ -192,7 +192,7 @@ static const char *rsync_url(const char *url)
 static struct ref *get_refs_via_rsync(struct transport *transport, int for_push)
 {
        struct strbuf buf = STRBUF_INIT, temp_dir = STRBUF_INIT;
-       struct ref dummy = {0}, *tail = &dummy;
+       struct ref dummy = {NULL}, *tail = &dummy;
        struct child_process rsync;
        const char *args[5];
        int temp_dir_len;