From 79444c6900238c65f02fa68011ab84896cc83b84 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 28 Jan 2018 22:00:01 -0300 Subject: Initialize curpid --- profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.c b/profile.c index 1fa787b..1a849aa 100644 --- a/profile.c +++ b/profile.c @@ -72,7 +72,7 @@ void spawn_child(char *progname, char **args, int fd) int main(int argc, char **argv) { - pid_t curpid; + pid_t curpid = 0; int status = -1; char *prog_name = NULL; char **args = NULL; -- cgit v1.2.3-70-g09d2