forked from rosa/hakurei
internal/rosa/package: net-tools
These are nice to have, but will not be included in the base system. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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 */
|
||||
Reference in New Issue
Block a user