Skip to content

Commit 88aef8a

Browse files
committed
Fixed use of uninitialised value in best_name().
1 parent 9b498e4 commit 88aef8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/diff.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ char *best_name (int n, char **names)
114114
int len;
115115

116116
if (is_dev_null[i])
117+
continue;
118+
119+
if (pathname_components[i] != best_pn)
117120
continue;
118121

119122
if (basename_length[i] != best_bn)

0 commit comments

Comments
 (0)