]> git.ozlabs.org Git - petitboot/blobdiff - lib/system/system.c
discover/boot: Allow boot hooks to alter boot data
[petitboot] / lib / system / system.c
index 7bb49973333f3ebebcd4eec0a87fe37994acc67c..528e134127f307f17d9dcfaa70b2b1ef60eb7a52 100644 (file)
@@ -159,9 +159,9 @@ int pb_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run,
        int status, pipefd[2];
        pid_t pid;
 
-       assert(!wait && stdout_buf);
-       assert(!!ctx != !!stdout_buf);
-       assert(!!stdout_buf != !!stdout_buf_len);
+       assert(!stdout_buf || wait);
+       assert(!stdout_buf || ctx);
+       assert(!stdout_buf || stdout_buf_len);
 
        if (do_debug) {
                const char *const *p = cmd_argv;