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:
Todd C. Miller
2016-05-10 06:32:55 -06:00
parent 398ddd0467
commit 8b4de84049

View File

@@ -71,8 +71,7 @@
* Returns true if the runas user and group lists match, else false.
*/
#define RUNAS_CHANGED(cs1, cs2) \
((cs1) == NULL || (cs2) == NULL || \
(cs1)->runasuserlist != (cs2)->runasuserlist || \
((cs1)->runasuserlist != (cs2)->runasuserlist || \
(cs1)->runasgrouplist != (cs2)->runasgrouplist)
#define SUDO_DIGEST_SHA224 0