X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=lib%2Fsystem%2Fsystem.c;h=528e134127f307f17d9dcfaa70b2b1ef60eb7a52;hb=2b41985dde73e71daad90c36fa5d06c199da3ae1;hp=7bb49973333f3ebebcd4eec0a87fe37994acc67c;hpb=c20a0460f3c9057aa920949414f8c3bd6529f927;p=petitboot diff --git a/lib/system/system.c b/lib/system/system.c index 7bb4997..528e134 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -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;