Skip to content

Commit f84cd22

Browse files
authored
Update proc.c; remove redundant null check (CodeQL #3) (#44)
1 parent bc87b42 commit f84cd22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/proc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ char *proc_gen_fmt(const char *name, int more, FILE * fh,...)
3535
if (!strcmp(title, head)) {
3636
strcat(format, va_arg(ap, char *));
3737
title = va_arg(ap, char *);
38-
if (!title || !head)
38+
if (!title)
3939
break;
4040
} else {
4141
strcat(format, "%*s"); /* XXX */

0 commit comments

Comments
 (0)