forked from github/server
kleiner fehler eingeschlichen.
This commit is contained in:
parent
e39b020d58
commit
42c8902729
|
@ -116,6 +116,7 @@ set_string (char **s, const char *neu)
|
|||
*s = NULL;
|
||||
} else if (*s == NULL) {
|
||||
*s = malloc(strlen(neu)+1);
|
||||
strcpy(*s, neu);
|
||||
} else {
|
||||
*s = realloc(*s, strlen(neu) + 1);
|
||||
strcpy(*s, neu);
|
||||
|
|
Loading…
Reference in New Issue