diff --git a/src/internal.h b/src/internal.h index 1b1598b08e701d7911da1e6affd2bb131adfe536..60be95df801d83361c18afe25af1f17c7787d48f 100644 --- a/src/internal.h +++ b/src/internal.h @@ -242,13 +242,13 @@ # define virCheckNonNullArgReturn(argname, retval) \ do { \ if (argname == NULL) { \ - virReportInvalidNullArg(argname); \ + virReportInvalidNonNullArg(argname); \ return retval; \ } \ } while (0) # define virCheckNullArgGoto(argname, label) \ do { \ - if (argname == NULL) { \ + if (argname != NULL) { \ virReportInvalidNullArg(argname); \ goto label; \ } \