Permalink
Browse files

Fix warning: the address of ‘qdir’ will always evaluate as ‘true’.

  • Loading branch information...
1 parent 698635d commit af1940a349e416f1a5b190825eb9543d03222e14 @bnoordhuis committed Nov 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 l_cmd.c
View
2 l_cmd.c
@@ -321,7 +321,7 @@ char *ExpandArg (char *path)
char *ExpandPath (char *path)
{
static char full[1024];
- if (!qdir)
+ if (!qdir[0])
Error ("ExpandPath called without qdir set");
if (path[0] == '/' || path[0] == '\\' || path[1] == ':')
return path;

0 comments on commit af1940a

Please sign in to comment.