We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8b22d commit 34c1a97Copy full SHA for 34c1a97
diff.c
@@ -3094,9 +3094,9 @@ static void run_external_diff(const char *pgm,
3094
argv_array_pushf(&env, "GIT_DIFF_PATH_COUNTER=%d", ++o->diff_path_counter);
3095
argv_array_pushf(&env, "GIT_DIFF_PATH_TOTAL=%d", q->nr);
3096
3097
- if (one->should_munmap)
+ if (one && one->should_munmap)
3098
diff_free_filespec_data(one);
3099
- if (two->should_munmap)
+ if (two && two->should_munmap)
3100
diff_free_filespec_data(two);
3101
if (run_command_v_opt_cd_env(argv.argv, RUN_USING_SHELL, NULL, env.argv))
3102
die(_("external diff died, stopping at %s"), name);
0 commit comments