From d75096422831c3ac05b20e3e3ddc366050b827d7 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 14 Jun 2011 18:17:08 +0200 Subject: [PATCH] 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. --- args.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 }, -- 1.7.0.4