remove if() which is always true
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 29 Sep 2007 18:27:14 +0000 (18:27 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sat, 29 Sep 2007 18:27:14 +0000 (18:27 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20118 69ca8d6d-28ef-0310-b511-8ec308f3f277

libbb/procps.c

index f1c0b6d..e62e5a1 100644 (file)
@@ -382,8 +382,7 @@ procps_status_t *procps_scan(procps_status_t* sp, int flags)
                        n = read_to_buf(filename, buf);
                        if (n <= 0)
                                break;
-                       if (flags & PSSCAN_ARGV0)
-                               sp->argv0 = xstrdup(buf);
+                       sp->argv0 = xstrdup(buf);
                }
 #endif
                break;