Commit 0f162f1f authored by runge's avatar runge

argv > 0 doesn't make sense for a pointer; assuming argv != NULL.

parent c4c92d3a
......@@ -238,7 +238,7 @@ static rfbBool rfbInitConnection(rfbClient* client)
rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
int i,j;
if(argv>0 && argc && *argc) {
if(argv && argc && *argc) {
if(client->programName==0)
client->programName=argv[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment