Skip to content

Commit

Permalink
Fixed: Build failure (invalid operands)
Browse files Browse the repository at this point in the history
gcc 4.6.3 on Raspbian says that '&&' cannot take int and va_list as
operands. The variable argument list parameter should never be null,
so removed the test.
  • Loading branch information
skyjake committed Oct 12, 2013
1 parent a604b47 commit 76c5eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/client/src/con_main.cpp
Expand Up @@ -1961,7 +1961,7 @@ static void conPrintf(int flags, const char* format, va_list args)
const char* text = 0;
#endif

if(format && format[0] && args)
if(format && format[0])
{
if(prbuff == NULL)
prbuff = (char *) M_Malloc(PRBUFF_SIZE);
Expand Down

0 comments on commit 76c5eef

Please sign in to comment.