Skip to content

Commit

Permalink
misc: removed unneeded variable, refs #31
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSimek committed Mar 26, 2013
1 parent 680d945 commit dc2a144
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/qcommon/common.c
Expand Up @@ -2785,8 +2785,7 @@ Com_Init
*/
void Com_Init(char *commandLine)
{
char *s;
int pid;
int pid;
// gcc warning: variable `safeMode' might be clobbered by `longjmp' or `vfork'
volatile qboolean safeMode = qtrue;

Expand Down Expand Up @@ -2831,8 +2830,7 @@ void Com_Init(char *commandLine)
#else
pid = getpid();
#endif
s = va("%d", pid);
com_pid = Cvar_Get("com_pid", s, CVAR_ROM);
com_pid = Cvar_Get("com_pid", va("%d", pid), CVAR_ROM);

// done early so bind command exists
CL_InitKeyCommands();
Expand Down

0 comments on commit dc2a144

Please sign in to comment.