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;
|
*s = NULL;
|
||||||
} else if (*s == NULL) {
|
} else if (*s == NULL) {
|
||||||
*s = malloc(strlen(neu)+1);
|
*s = malloc(strlen(neu)+1);
|
||||||
|
strcpy(*s, neu);
|
||||||
} else {
|
} else {
|
||||||
*s = realloc(*s, strlen(neu) + 1);
|
*s = realloc(*s, strlen(neu) + 1);
|
||||||
strcpy(*s, neu);
|
strcpy(*s, neu);
|
||||||
|
|
Loading…
Reference in New Issue