| commit | b30d92dfb22a9200e69fc4c5193b63d587464c7e | [log] [tgz] |
|---|---|---|
| author | Alexandre Julliard <julliard@winehq.org> | Fri Mar 18 14:09:55 2005 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Fri Mar 18 14:09:55 2005 +0000 |
| tree | 9490bb72d6a61da0a6b6f1adc029eaac0220fb99 | |
| parent | f65e415d642667405accb1ae3834157b36dd1f26 [diff] [blame] |
Fixed other instances of the xrealloc(0) bug.
diff --git a/tools/winegcc/utils.c b/tools/winegcc/utils.c index ee404d5..6d5d31e 100644 --- a/tools/winegcc/utils.c +++ b/tools/winegcc/utils.c
@@ -60,8 +60,8 @@ void *xrealloc(void* p, size_t size) { - void* p2; - if ((p2 = realloc (p, size)) == NULL) + void* p2 = realloc (p, size); + if (size && !p2) error("Can not realloc %d bytes.", size); return p2;