Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m50s
Test / Hakurei (push) Successful in 4m38s
Test / Sandbox (race detector) (push) Successful in 5m48s
Test / Hakurei (race detector) (push) Successful in 6m59s
Test / ShareFS (push) Successful in 7m20s
Test / Flake checks (push) Successful in 1m18s
These are nice to have, but will not be included in the base system. Signed-off-by: Ophestra <cat@gensokyo.uk>
23 lines
685 B
Diff
23 lines
685 B
Diff
From f84cd22a921c25c56a6c194d4825dbd9ceea0e5f Mon Sep 17 00:00:00 2001
|
|
From: Bernd <bernd@eckenfels.net>
|
|
Date: Sat, 22 Mar 2025 00:17:10 +0100
|
|
Subject: [PATCH] Update proc.c; remove redundant null check (CodeQL #3) (#44)
|
|
|
|
---
|
|
lib/proc.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/proc.c b/lib/proc.c
|
|
index ce85fd1..d51d09f 100644
|
|
--- a/lib/proc.c
|
|
+++ b/lib/proc.c
|
|
@@ -35,7 +35,7 @@ char *proc_gen_fmt(const char *name, int more, FILE * fh,...)
|
|
if (!strcmp(title, head)) {
|
|
strcat(format, va_arg(ap, char *));
|
|
title = va_arg(ap, char *);
|
|
- if (!title || !head)
|
|
+ if (!title)
|
|
break;
|
|
} else {
|
|
strcat(format, "%*s"); /* XXX */
|