From 18371cacba74d771798ce94ae28f342989cf5ea0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 29 Mar 2018 18:53:51 -0600 Subject: [PATCH] No need to initialize the last pointer passed to strtok_r(). This was originally added to appease newer gcc but no longer seems to be required. CID 183466, CID 183468, CID 183469 --- plugins/sudoers/cvtsudoers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/sudoers/cvtsudoers.c b/plugins/sudoers/cvtsudoers.c index e890a6cae..2c78659ba 100644 --- a/plugins/sudoers/cvtsudoers.c +++ b/plugins/sudoers/cvtsudoers.c @@ -461,7 +461,7 @@ cvtsudoers_conf_free(struct cvtsudoers_config *conf) static int cvtsudoers_parse_defaults(char *expression) { - char *last = NULL, *cp = expression; + char *last, *cp = expression; int flags = 0; debug_decl(cvtsudoers_parse_defaults, SUDOERS_DEBUG_UTIL) @@ -490,7 +490,7 @@ cvtsudoers_parse_defaults(char *expression) static int cvtsudoers_parse_suppression(char *expression) { - char *last = NULL, *cp = expression; + char *last, *cp = expression; int flags = 0; debug_decl(cvtsudoers_parse_suppression, SUDOERS_DEBUG_UTIL) @@ -513,7 +513,7 @@ cvtsudoers_parse_suppression(char *expression) static bool cvtsudoers_parse_filter(char *expression) { - char *last = NULL, *cp = expression; + char *last, *cp = expression; debug_decl(cvtsudoers_parse_filter, SUDOERS_DEBUG_UTIL) if (filters == NULL) { -- 2.40.0