tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkill
gcc 4.8 seems less confused about "action" being used uninitialised after
application of attached patch. Makes sense?
Cheers,
Patrick
Index: pkill.c
===================================================================
RCS file: /cvsroot/src/usr.bin/pkill/pkill.c,v
retrieving revision 1.29
diff -u -r1.29 pkill.c
--- pkill.c 2 Jan 2013 10:36:07 -0000 1.29
+++ pkill.c 6 Jan 2015 11:12:22 -0000
@@ -128,8 +128,8 @@
action = grepact;
pgrep = 1;
} else if (strcmp(getprogname(), "prenice") == 0) {
+ action = reniceact;
prenice = 1;
-
} else {
action = killact;
p = argv[1];
@@ -171,7 +171,6 @@
if (argc < 2)
usage();
- action = reniceact;
p = argv[1];
i = (int)strtol(p, &q, 10);
Home |
Main Index |
Thread Index |
Old Index