Coverity fixes
[claws.git] / src / crash.c
index 5f3eaa9924d5b401d66c107169b931443ce76f4a..d3c5022af0558494781a01cd7c089d8c6182f720 100644 (file)
@@ -333,7 +333,10 @@ static void crash_debug(unsigned long crash_pid,
        int choutput[2];
        pid_t pid;
 
-       pipe(choutput);
+       if (pipe(choutput) == -1) {
+               g_print("can't pipe - error %s", errno);
+               return;
+       }
 
        if (0 == (pid = fork())) {
                char *argp[10];