Skip to content

Commit

Permalink
drouting: fix typo in pointer allocation
Browse files Browse the repository at this point in the history
Fixes coverity tag 150521
  • Loading branch information
razvancrainea committed Oct 21, 2016
1 parent 6017c7d commit 7b675de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/drouting/drouting.c
Expand Up @@ -1473,7 +1473,7 @@ static int dr_init(void)
goto skip;
}

head_db_end->db_con = pkg_malloc(sizeof(db_con_t **));
head_db_end->db_con = pkg_malloc(sizeof(db_con_t *));
(*(head_db_end->db_con)) = 0;

/* bind to the SQL module */
Expand Down

0 comments on commit 7b675de

Please sign in to comment.