From: bdemsky Date: Sat, 15 Sep 2007 08:13:49 +0000 (+0000) Subject: remote the annoying required master arguement... X-Git-Tag: preEdgeChange~434 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6230b750cf4477a567e7e5f3f893ed8ef1bf2c71;p=IRC.git remote the annoying required master arguement... --- diff --git a/Robust/src/Runtime/DSTM/interface/trans.c b/Robust/src/Runtime/DSTM/interface/trans.c index 2110c037..f85e8fbc 100644 --- a/Robust/src/Runtime/DSTM/interface/trans.c +++ b/Robust/src/Runtime/DSTM/interface/trans.c @@ -95,7 +95,7 @@ void prefetch(int ntuples, unsigned int *oids, unsigned short *endoffsets, short int dstmStartup(const char * option) { pthread_t thread_Listen; pthread_attr_t attr; - int master=strcmp(option, "master")==0; + int master=option!=NULL && strcmp(option, "master")==0; if (processConfigFile() != 0) return 0; //TODO: return error value, cause main program to exit