Changeset: 32718647c92c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=32718647c92c
Modified Files:
clients/R/MonetDB.R/src/profiler.c
Branch: default
Log Message:
profiler.c: ensure variables are initialized before being used
fixing optimized compilation with gcc:
.../MonetDB/clients/mapiclient/../R/MonetDB.R/src/profiler.c: In function
‘profiler_thread’:
.../MonetDB/clients/mapiclient/../R/MonetDB.R/src/profiler.c:219:59: error:
‘profiler_querystart’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
if (profiler_msgs_expect > 0 && (profiler_tsms() -
profiler_querystart) > 500) {
^
diffs (12 lines):
diff --git a/clients/R/MonetDB.R/src/profiler.c
b/clients/R/MonetDB.R/src/profiler.c
--- a/clients/R/MonetDB.R/src/profiler.c
+++ b/clients/R/MonetDB.R/src/profiler.c
@@ -166,7 +166,7 @@ static void* profiler_thread(void* param
size_t profiler_msgs_expect = 0;
size_t profiler_msgs_done = 0;
- unsigned long profiler_querystart;
+ unsigned long profiler_querystart = 0;
char* stmtbuf = malloc(65507); // maximum size of an IPv4 UDP packet
mal_statement *stmt = malloc(sizeof(mal_statement));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list