]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix dead code.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Feb 2015 12:24:14 +0000 (12:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Feb 2015 12:24:14 +0000 (12:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12144 d7cf8633-e32d-0410-b094-e92efae38249

crypto.c

index 016ff9b6072aa7505cb0f58ba77f5fb574f64a88..8f7deba70afd34117a06dd1d3464b7d314e494d5 100644 (file)
--- 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