git_refspec_transform: Handle NULL dst
diff --git a/src/refspec.c b/src/refspec.c
index 8061788..82c4770 100644
--- a/src/refspec.c
+++ b/src/refspec.c
@@ -252,7 +252,7 @@ int git_refspec_transform(git_buf *out, const git_refspec *spec, const char *nam
}
if (!spec->pattern)
- return git_buf_puts(out, spec->dst);
+ return git_buf_puts(out, spec->dst ? spec->dst : "");
return refspec_transform(out, spec->src, spec->dst, name);
}