tests: Say "pass" rather than "ok" on empty lines for TAP
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 10abda7d0d9b60fd0ddaeb3665f663996d7b79ad..6f486ae62d8b4605520e75286ca36217d0715363 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -314,7 +314,11 @@ static int warn_if_dangling_symref(const char *refname, const unsigned char *sha
 
 void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname)
 {
-       struct warn_if_dangling_data data = { fp, refname, msg_fmt };
+       struct warn_if_dangling_data data;
+
+       data.fp = fp;
+       data.refname = refname;
+       data.msg_fmt = msg_fmt;
        for_each_rawref(warn_if_dangling_symref, &data);
 }