Fixed a few more instances of strcmp(blah,NULL)

This commit is contained in:
Lance Burton 2002-01-12 20:00:49 +00:00
parent f9ea1c5555
commit 9e58e93ff0
2 changed files with 8 additions and 2 deletions

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.15 2002/01/12 20:00:49 hal9000
// Fixed a few more instances of strcmp(blah,NULL)
//
// Revision 1.14 2002/01/11 20:20:58 jbravo
// Adding TP to main branch
//
@ -1104,7 +1107,7 @@ static void CG_ServerCommand( void ) {
//CG_Printf("1) %s %f %f\n", param, lowend, highend);
for (i=0;i<30; i++)
{
if (!strcmp(cheats[i].cvar, NULL))
if (!strcmp(cheats[i].cvar, ""))
{
Q_strncpyz( cheats[i].cvar, param, 40 );
cheats[i].high = highend;

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.17 2002/01/12 20:00:49 hal9000
// Fixed a few more instances of strcmp(blah,NULL)
//
// Revision 1.16 2002/01/11 19:48:29 jbravo
// Formatted the source in non DOS format.
//
@ -1244,7 +1247,7 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView, qboolean demo
//Blaze: Check for invalid video settings.
for(i=0;i<30;i++)
{
if (strcmp(cheats[i].cvar, NULL)!=0)
if (strcmp(cheats[i].cvar, "")!=0)
{
cvar_val = CG_Cvar_Get(cheats[i].cvar);
//CG_Printf("%s is set to %f\n",cheats[i].cvar, cvar_val);