From: H.G. Muller Date: Tue, 14 Jun 2011 16:17:08 +0000 (+0200) Subject: Fix default of -remoteUser X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d75096422831c3ac05b20e3e3ddc366050b827d7;p=xboard.git Fix default of -remoteUser This has to be an empty string, rather than NULL, to prevent XBoard from segfaulting when the -gateway option is used. --- diff --git a/args.h b/args.h index e6da21a..0f95654 100644 --- a/args.h +++ b/args.h @@ -217,7 +217,7 @@ ArgDescriptor argDescriptors[] = { { "sweepPromotions", ArgBoolean, (void *) &appData.sweepSelect, TRUE, (ArgIniType) FALSE }, { "remoteShell", ArgFilename, (void *) &appData.remoteShell, FALSE, (ArgIniType) REMOTE_SHELL }, { "rsh", ArgFilename, (void *) &appData.remoteShell, FALSE, INVALID }, - { "remoteUser", ArgString, (void *) &appData.remoteUser, FALSE, INVALID }, + { "remoteUser", ArgString, (void *) &appData.remoteUser, FALSE, (ArgIniType) "" }, { "ruser", ArgString, (void *) &appData.remoteUser, FALSE, INVALID }, { "timeDelay", ArgFloat, (void *) &appData.timeDelay, TRUE, INVALID }, { "td", ArgFloat, (void *) &appData.timeDelay, FALSE, INVALID },