diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-03-26 11:54:34 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-03-26 11:54:34 +0000 |
commit | e99ae52b31082c6b24acd7aa42c54cace4e9db35 (patch) | |
tree | 5aed18902f977fdfb1fcf733cc55f7583c834b60 /src/util/Table.c | |
parent | 55357998e19e21fd85218f30eb7415ad4135bc15 (diff) |
Do not report an error when allocating 0-sized arrays on certain
systems.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3603 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/Table.c')
-rw-r--r-- | src/util/Table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Table.c b/src/util/Table.c index 044598bb..6fce9462 100644 --- a/src/util/Table.c +++ b/src/util/Table.c @@ -4993,7 +4993,7 @@ static #endif { void *const buffer = malloc(sizeof_value); - if (buffer == NULL) + if (sizeof_value != 0 && buffer == NULL) { free(tep->key); free(tep); |