Commit c065f6a1 by Edward Thomson

apply: check allocation properly

parent 531be3e8
......@@ -897,7 +897,7 @@ done:
*out_len = (path - path_start);
*out = git__strndup(path_start, *out_len);
return (out == NULL) ? -1 : 0;
return (*out == NULL) ? -1 : 0;
}
static int check_filenames(git_patch_parsed *patch)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment