summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-02-15 13:31:04 +0100
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-02-15 13:31:04 +0100
commit7743457e37bfe994c6e9654faddbb1932d87acad (patch)
tree1ef457cb1a15d6af7927951957861e3240e4cd34
parentba9c49273860e0f6f1bc865177f5024cc0495e42 (diff)
downloadfribid-7743457e37bfe994c6e9654faddbb1932d87acad.tar.gz
fribid-7743457e37bfe994c6e9654faddbb1932d87acad.tar.bz2
fribid-7743457e37bfe994c6e9654faddbb1932d87acad.zip
Exit from main loop if there's an invalid pipe command
-rw-r--r--client/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/main.c b/client/main.c
index 0997f37..8d1a23d 100644
--- a/client/main.c
+++ b/client/main.c
@@ -300,6 +300,11 @@ void pipeCommand(PipeCommand command, const char *url, const char *hostname,
platform_leaveMainloop();
break;
}
+ default: {
+ fprintf(stderr, BINNAME ": invalid command from pipe\n");
+ platform_leaveMainloop();
+ break;
+ }
}
}