...
Code Block | ||
---|---|---|
| ||
char *p2; char *p = (char *)malloc(100); /* ... */ if ( (nsize == 0) || (p2 = (char *)realloc(p, nsize)) == NULL) { free(p); p = NULL; return NULL; } p = p2; |
...
...
Code Block | ||
---|---|---|
| ||
char *p2; char *p = (char *)malloc(100); /* ... */ if ( (nsize == 0) || (p2 = (char *)realloc(p, nsize)) == NULL) { free(p); p = NULL; return NULL; } p = p2; |
...