Skip to content

Commit

Permalink
snmpstats: use same type as the pointer for sizeof
Browse files Browse the repository at this point in the history
(cherry picked from commit 3de5a78)
  • Loading branch information
miconda committed May 5, 2022
1 parent a03721b commit eac3072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/snmpstats/snmpSIPContactTable.c
Expand Up @@ -203,7 +203,7 @@ int createContactRow(int userIndex, int contactIndex, char *contactName,

/* Fill in the rest of the rows columns */
theRow->kamailioSIPContactURI =
(unsigned char *)pkg_malloc((stringLength + 1) * sizeof(char));
(unsigned char *)pkg_malloc((stringLength + 1) * sizeof(unsigned char));
if(theRow->kamailioSIPContactURI == NULL) {
pkg_free(OIDIndex);
free(theRow);
Expand Down

0 comments on commit eac3072

Please sign in to comment.