Skip to content

Commit

Permalink
shut up stupid analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 13, 2019
1 parent 66e2b99 commit 0c2454d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/lib/server/cf_file.c
Expand Up @@ -985,10 +985,6 @@ static int process_template(CONF_SECTION *parent, char const *ptr, char *buff[st
return -1;
}

#ifdef __clang_analyzer__
if (!ptr) return NULL;
#endif

ci = cf_reference_item(parent_cs, templatecs, buff[2]);
if (!ci || (ci->type != CONF_ITEM_SECTION)) {
ERROR("%s[%d]: Reference \"%s\" not found", filename, lineno, buff[2]);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/server/cf_file.h
Expand Up @@ -63,7 +63,7 @@ int cf_section_write(FILE *fp, CONF_SECTION *cs, int depth);
/*
* Misc
*/
CONF_ITEM *cf_reference_item(CONF_SECTION const *parentcs, CONF_SECTION const *outercs, char const *ptr) CC_HINT(nonnull(2,3));
CONF_ITEM *cf_reference_item(CONF_SECTION const *parentcs, CONF_SECTION const *outercs, char const *ptr);
char const *cf_expand_variables(char const *filename, int lineno,
CONF_SECTION *outer_cs,
char *output, size_t outsize,
Expand Down

0 comments on commit 0c2454d

Please sign in to comment.