summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-01-22 09:17:21 -0500
committerOri Bernstein <ori@eigenstate.org>2013-01-22 09:17:21 -0500
commit4931139165780ca410fe5ab41cac6d1af0af059e (patch)
tree6094b573b0148f5c267b57446ec24f5ef1aa8079
parent693647efbb86d842a9edc6e15c8d2420ff14b01c (diff)
downloadmc-4931139165780ca410fe5ab41cac6d1af0af059e.tar.gz
Fix uninitialized variable warnings under Clang.
-rw-r--r--myrbuild/myrbuild.c1
-rw-r--r--parse/pickle.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/myrbuild/myrbuild.c b/myrbuild/myrbuild.c
index da69e73..37726fe 100644
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -107,6 +107,7 @@ void run(char **cmd)
printl(cmd);
pid = fork();
+ status = 0;
if (pid == -1) {
err(1, "Could not fork");
} else if (pid == 0) {
diff --git a/parse/pickle.c b/parse/pickle.c
index 9cbedf0..cb8c388 100644
--- a/parse/pickle.c
+++ b/parse/pickle.c
@@ -104,6 +104,7 @@ static Ucon *rducon(FILE *fd, Type *ut)
size_t id;
int line;
+ et = NULL;
line = rdint(fd);
id = rdint(fd);
name = unpickle(fd);