remote the annoying required master arguement...
authorbdemsky <bdemsky>
Sat, 15 Sep 2007 08:13:49 +0000 (08:13 +0000)
committerbdemsky <bdemsky>
Sat, 15 Sep 2007 08:13:49 +0000 (08:13 +0000)
Robust/src/Runtime/DSTM/interface/trans.c

index 2110c03770f720a6c6d4cdd80a29b4532796c564..f85e8fbcd365e4598ccff8806b38114b6c7694bd 100644 (file)
@@ -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