]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Get rid of an unused variable
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 13 Aug 2010 18:42:41 +0000 (18:42 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 13 Aug 2010 18:42:41 +0000 (18:42 +0000)
From: terencehill <piuntn@gmail.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10389 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index 19da28e1b21f1b161f6771b842b2ebc54c1a3897..80e810a532561e7dfa2431d0c1e8be571dd3f24c 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -1111,15 +1111,11 @@ static void Cmd_Apropos_f(void)
        cvar_t *cvar;
        cmdalias_t *alias;
        const char *partial;
-       size_t len;
        int count;
        qboolean ispattern;
 
        if (Cmd_Argc() > 1)
-       {
                partial = Cmd_Args();
-               len = strlen(partial);
-       }
        else
        {
                Con_Printf("usage: apropos <string>\n");
@@ -1128,10 +1124,7 @@ static void Cmd_Apropos_f(void)
 
        ispattern = partial && (strchr(partial, '*') || strchr(partial, '?'));
        if(!ispattern)
-       {
                partial = va("*%s*", partial);
-               len += 2;
-       }
 
        count = 0;
        for (cvar = cvar_vars; cvar; cvar = cvar->next)