Merge branch 'rd/typofix'
[gitweb.git] / builtin / remote.c
index 3d38c6150cfd15761fe975364af281da7938d72d..d95bf904c3b3fb40438335198a2729e45a9897cb 100644 (file)
@@ -565,7 +565,7 @@ static int read_remote_branches(const char *refname,
                item = string_list_append(rename->remote_branches, xstrdup(refname));
                symref = resolve_ref_unsafe(refname, RESOLVE_REF_READING,
                                            NULL, &flag);
-               if (flag & REF_ISSYMREF)
+               if (symref && (flag & REF_ISSYMREF))
                        item->util = xstrdup(symref);
                else
                        item->util = NULL;