From: Arran Cudbard-Bell Date: Mon, 15 Mar 2021 22:50:40 +0000 (+0000) Subject: Name is now nonnull X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f76d1141a548a41feee1b1bfaf23fe8e3ba26f90;p=thirdparty%2Ffreeradius-server.git Name is now nonnull --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index 113071bd17d..e4e94c4ec6f 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -257,7 +257,7 @@ xlat_t *xlat_register_legacy(void *mod_inst, char const *name, if (!xlat_root && (xlat_init() < 0)) return NULL; - if (!name || !*name) { + if (!*name) { ERROR("%s: Invalid xlat name", __FUNCTION__); return NULL; } @@ -319,7 +319,7 @@ xlat_t *xlat_register(TALLOC_CTX *ctx, char const *name, xlat_func_t func, bool if (!xlat_root) xlat_init(); - if (!name || !*name) { + if (!*name) { ERROR("%s: Invalid xlat name", __FUNCTION__); return NULL; }