Merge pull request #7052 from QiuYitai/main

Fix the null reference vulnerability.
This commit is contained in:
Edward Thomson
2026-05-06 23:05:55 +01:00
committed by GitHub

View File

@@ -90,8 +90,10 @@ int checkout_count_callback(
if (ct->debug) {
if (workdir)
fprintf(stderr, "M %s\n", workdir->path);
else
else if (baseline)
fprintf(stderr, "D %s\n", baseline->path);
else
fprintf(stderr, "invalid notification - no workdir or baseline path\n");
}
}