diff options
author | Florian Hahn <flo@fhahn.com> | 2013-08-15 15:34:27 +0200 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2013-08-15 15:34:27 +0200 |
commit | 3590f0a521812cc2d76e344c53640f8b823ac4d0 (patch) | |
tree | 30f88b2f6b1a495bda14018ea461a42b2a83b6bc /core/Messenger.h | |
parent | 70b633d81634fb7369065cb902deee87ac84b7ca (diff) |
Check return value of realloc_friendlist and return FAERR_NOMEM on error
Diffstat (limited to 'core/Messenger.h')
-rw-r--r-- | core/Messenger.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Messenger.h b/core/Messenger.h index a2add19d..a7e0aab5 100644 --- a/core/Messenger.h +++ b/core/Messenger.h | |||
@@ -63,6 +63,7 @@ extern "C" { | |||
63 | #define FAERR_UNKNOWN -5 | 63 | #define FAERR_UNKNOWN -5 |
64 | #define FAERR_BADCHECKSUM -6 | 64 | #define FAERR_BADCHECKSUM -6 |
65 | #define FAERR_SETNEWNOSPAM -7 | 65 | #define FAERR_SETNEWNOSPAM -7 |
66 | #define FAERR_NOMEM -8 | ||
66 | 67 | ||
67 | /* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased | 68 | /* don't assume MAX_STATUSMESSAGE_LENGTH will stay at 128, it may be increased |
68 | to an absurdly large number later */ | 69 | to an absurdly large number later */ |