From f56a8529a3235029333e2da49d28d0ef5899819e Mon Sep 17 00:00:00 2001 From: "Coren[m]" Date: Sat, 21 Sep 2013 10:07:16 +0200 Subject: [PATCH] Thou shalt not take singular commands after an if into #ifdef DEBUG... toxcore/Messenger.c: - Messenger_load_old(): brackets around an #ifdef'ed line to avoid data pointer being only pushed forward properly in the error case --- toxcore/Messenger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index dbbfa58c..e468a60a 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -1425,12 +1425,12 @@ static int Messenger_load_old(Messenger *m, uint8_t *data, uint32_t length) if (length < size) return -1; - if (DHT_load_old(m->dht, data, size) == -1) + if (DHT_load_old(m->dht, data, size) == -1) { #ifdef DEBUG fprintf(stderr, "Data file: Something wicked happened to the stored connections...\n"); - + /* DO go on, friends/name still might be intact */ #endif - /* DO go on, friends/name still might be intact */ + } data += size; length -= size;