Merge branch 'master' of https://github.com/clicon/clixon
This commit is contained in:
commit
e3b51c3d32
6 changed files with 52 additions and 9 deletions
|
|
@ -1703,7 +1703,7 @@ clicon_strsplit_malloc(char *string,
|
|||
nvec++;
|
||||
/* alloc vector and append copy of string */
|
||||
if ((vec = (char**)malloc(nvec* sizeof(char*) + strlen(string)+1)) == NULL){
|
||||
clicon_err(OE_YANG, errno, "calloc");
|
||||
clicon_err(OE_YANG, errno, "malloc");
|
||||
goto err;
|
||||
}
|
||||
ptr = (char*)vec + nvec* sizeof(char*); /* this is where ptr starts */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue