fixed a bug when CmiPrintf (print version) is called before cpv expIOFlushFlag is...
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 10 Nov 2007 06:59:20 +0000 (06:59 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 10 Nov 2007 06:59:20 +0000 (06:59 +0000)
src/conv-core/convcore.c

index 0ea59f8867b462c17e0592e2a22ac29ef7b228d4..709ebfb9c15ae5b389af2bd57625c354ef5d11cd 100644 (file)
@@ -2825,7 +2825,7 @@ void CmiPrintf(const char *format, ...)
   va_list args;
   va_start(args,format);
   vfprintf(stdout,format, args);
-  if (!CpvAccess(expIOFlushFlag)) {
+  if (CpvInitialized(expIOFlushFlag) && !CpvAccess(expIOFlushFlag)) {
     CmiFlush(stdout);
   }
   va_end(args);