Remove unnecessary NULL checks in the RUNAS_CHANGED macro. The
only place where the pointers could be NULL is in visudo_json.c but we already check for "next" being NULL there. Quiets a cppcheck warning.
This commit is contained in:
@@ -71,8 +71,7 @@
|
|||||||
* Returns true if the runas user and group lists match, else false.
|
* Returns true if the runas user and group lists match, else false.
|
||||||
*/
|
*/
|
||||||
#define RUNAS_CHANGED(cs1, cs2) \
|
#define RUNAS_CHANGED(cs1, cs2) \
|
||||||
((cs1) == NULL || (cs2) == NULL || \
|
((cs1)->runasuserlist != (cs2)->runasuserlist || \
|
||||||
(cs1)->runasuserlist != (cs2)->runasuserlist || \
|
|
||||||
(cs1)->runasgrouplist != (cs2)->runasgrouplist)
|
(cs1)->runasgrouplist != (cs2)->runasgrouplist)
|
||||||
|
|
||||||
#define SUDO_DIGEST_SHA224 0
|
#define SUDO_DIGEST_SHA224 0
|
||||||
|
Reference in New Issue
Block a user