From cf5839b5517e744166950ecb7907ac4e24ea8506 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 4 Feb 2015 12:24:14 +0000 Subject: [PATCH] Fix dead code. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12144 d7cf8633-e32d-0410-b094-e92efae38249 --- crypto.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/crypto.c b/crypto.c index 016ff9b6..8f7deba7 100644 --- a/crypto.c +++ b/crypto.c @@ -412,17 +412,12 @@ static const char *GetUntilNul(const char **data, size_t *len) *len = 0; return NULL; } - else - { - n = (p - *data) + 1; - *len -= n; - *data += n; - if(*len == 0) - *data = NULL; - return (const char *) data_save; - } - *data = NULL; - return NULL; + n = (p - *data) + 1; + *len -= n; + *data += n; + if(*len == 0) + *data = NULL; + return (const char *) data_save; } // d0pk reading -- 2.39.2