diff options
Diffstat (limited to 'editors/patch.c')
-rw-r--r-- | editors/patch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/patch.c b/editors/patch.c index 4d1425e..11b2f25 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -62,7 +62,9 @@ static char *extract_filename(char *line, int patch_level) /* skip over (patch_level) number of leading directories */ for (i = 0; i < patch_level; i++) { - if(!(temp = strchr(filename_start_ptr, '/'))) break; + temp = strchr(filename_start_ptr, '/'); + if (!temp) + break; filename_start_ptr = temp + 1; } |