mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
error: Fix typos in argument checking macros
Macro virCheckNullArgGoto is supposed to check for NULL argument but checks non-NULL instead. Macro virCheckNonNullArgReturn reports error as if the argument should be NULL when it shouldn't.
This commit is contained in:
parent
4b2273074c
commit
fbc72a1d0b
@ -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; \
|
||||
} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user