]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Add assert to help static analyzer
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 6 Oct 2017 11:52:54 +0000 (14:52 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 6 Oct 2017 11:52:54 +0000 (14:52 +0300)
src/lib-settings/settings-parser.c

index 462c1a150b1f09827946ef875d6448f52e8cedc2..de9ce79efce7d4e75c0fd0a08da89a1a5c559d1f 100644 (file)
@@ -119,6 +119,7 @@ copy_unique_defaults(struct setting_parser_context *ctx,
                array_append(arr, &new_set, 1);
 
                if (link->change_struct != NULL) {
+                       i_assert(carr != NULL);
                        new_changes = p_malloc(ctx->set_pool, info.struct_size);
                        array_append(carr, &new_changes, 1);
                }