From: divverent Date: Wed, 4 Feb 2015 12:24:14 +0000 (+0000) Subject: Fix dead code. X-Git-Tag: xonotic-v0.8.1~29^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf5839b5517e744166950ecb7907ac4e24ea8506;p=xonotic%2Fdarkplaces.git Fix dead code. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12144 d7cf8633-e32d-0410-b094-e92efae38249 --- 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