pclose: Fix other places where we only tested pclose == -1.
[libguestfs.git] / generator / generator_capitests.ml
index 963ed51..2cad2ae 100644 (file)
@@ -106,7 +106,7 @@ md5sum (const char *filename, char *result)
     perror (\"md5sum: fread\");
     exit (EXIT_FAILURE);
   }
-  if (pclose (pp) == -1) {
+  if (pclose (pp) != 0) {
     perror (\"pclose\");
     exit (EXIT_FAILURE);
   }