sysmon: fix compile warnings
Change-Id: I0108b9257c20888a927787d204f1c57d243b9abd
Signed-off-by: Sanimir Agovic <sanimir@subpath.org>
diff --git a/agent/tcf/services/sysmon.c b/agent/tcf/services/sysmon.c
index 22d730b..ccfe963 100644
--- a/agent/tcf/services/sysmon.c
+++ b/agent/tcf/services/sysmon.c
@@ -251,7 +251,6 @@
}
static void command_get_children(char * token, Channel * c) {
- int err = 0;
char id[256];
pid_t pid = 0;
pid_t parent = 0;
@@ -341,7 +340,7 @@
}
static void command_get_command_line(char * token, Channel * c) {
- int err;
+ int err = 0;
char id[256];
pid_t pid;
pid_t parent;