]> granicus.if.org Git - procps-ng/commitdiff
library: eliminate that warning of '-Wunused-variable'
authorJim Warner <james.warner@comcast.net>
Sun, 2 Jan 2022 06:00:09 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Fri, 7 Jan 2022 08:19:15 +0000 (19:19 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/readproc.c

index feda54b7f6d1bb5c04f08b30dee5bd09e2c301bc..eb3504d8c6cc05bd1c9fdaf725d06094548e1967 100644 (file)
@@ -1069,7 +1069,7 @@ static char *readlink_exe (const char *path){
 
     // Provide the autogroup fields (or -1 if not available)
 static void autogroup_fill (const char *path, proc_t *p) {
-    char buf[PROCPATHLEN], *str;
+    char buf[PROCPATHLEN];
     int fd, in;
 
     p->autogrp_id = -1;