summaryrefslogtreecommitdiffstats
path: root/web/attachments/36305-check_procs_1.5.txt
blob: 2cac0d251e41b795ac32e3f0e01e8ea4b7a4c2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- nagios-plugins-1.3.0-beta2.orig/plugins/check_procs.c       Fri Nov 22 02:33:26 2002
+++ nagios-plugins-1.3.0-beta2/plugins/check_procs.c    Wed Nov 27 16:21:10 2002
@@ -72,10 +72,10 @@
 int verbose = FALSE;
 int uid;
 int ppid;
-char *statopts = NULL;
-char *prog = NULL;
-char *args = NULL;
-char *fmt = NULL;
+char *statopts = "";
+char *prog = "";
+char *args = "";
+char *fmt = "";
 char tmp[MAX_INPUT_BUFFER];

 int
@@ -275,7 +275,6 @@
        };
 #endif

-       asprintf (&fmt, "");

        for (c = 1; c < argc; c++)
                if (strcmp ("-to", argv[c]) == 0)