]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Name is now nonnull
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Mar 2021 22:50:40 +0000 (22:50 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Mar 2021 22:50:40 +0000 (22:50 +0000)
src/lib/unlang/xlat_builtin.c

index 113071bd17d6c2f20f0b1df4336e269375205be0..e4e94c4ec6f5e0286013075f29bf647a1f62fb96 100644 (file)
@@ -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;
        }