Skip to content

Commit

Permalink
properly check if the tag's length is defined
Browse files Browse the repository at this point in the history
Fixes coverity tag 150515
  • Loading branch information
razvancrainea committed Oct 21, 2016
1 parent 5ed26ad commit 2655631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/acc/acc_extra.c
Expand Up @@ -101,7 +101,7 @@ static inline int add_tag(str* _stag, tag_t** tag_arr, int* tags_len)
{
int ret=-1, i;

if (tags_len == 0) {
if (*tags_len == 0) {
(*tag_arr) = pkg_malloc(TAGS_FACTOR * sizeof(tag_t));
if ((*tag_arr) == NULL)
goto out_nomem;
Expand Down

0 comments on commit 2655631

Please sign in to comment.