diff options
Diffstat (limited to 'beos/beos_gui.cpp')
-rw-r--r-- | beos/beos_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp index cb41dfa07..471f4e9ea 100644 --- a/beos/beos_gui.cpp +++ b/beos/beos_gui.cpp @@ -1170,6 +1170,11 @@ bool cookies_update(const char *domain, const struct cookie_data *data) static void *myrealloc(void *ptr, size_t len, void *pw) { + if (len == 0) { + free(ptr); + return NULL; + } + return realloc(ptr, len); } |