aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/patch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/patch.c b/editors/patch.c
index f11f8a1a2..8e885d06e 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -117,12 +117,14 @@ int patch_main(int argc, char **argv)
117 free(patch_line); 117 free(patch_line);
118 patch_line = xmalloc_fgets(patch_file); 118 patch_line = xmalloc_fgets(patch_file);
119 } 119 }
120 /* FIXME: patch_line NULL check?? */
120 121
121 /* Extract the filename used before the patch was generated */ 122 /* Extract the filename used before the patch was generated */
122 original_filename = extract_filename(patch_line, patch_level); 123 original_filename = extract_filename(patch_line, patch_level);
123 free(patch_line); 124 free(patch_line);
124 125
125 patch_line = xmalloc_fgets(patch_file); 126 patch_line = xmalloc_fgets(patch_file);
127 /* FIXME: NULL check?? */
126 if (strncmp(patch_line, "+++ ", 4) != 0) { 128 if (strncmp(patch_line, "+++ ", 4) != 0) {
127 ret = 2; 129 ret = 2;
128 bb_error_msg("invalid patch"); 130 bb_error_msg("invalid patch");