Changeset: 170fa259a9e4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=170fa259a9e4
Modified Files:
monetdb5/modules/mal/wlc.c
Branch: Mar2018
Log Message:
Check for returned values
diffs (19 lines):
diff --git a/monetdb5/modules/mal/wlc.c b/monetdb5/modules/mal/wlc.c
--- a/monetdb5/modules/mal/wlc.c
+++ b/monetdb5/modules/mal/wlc.c
@@ -324,11 +324,13 @@ WLClogger(void *arg)
*/
str
WLCinit(void)
-{ str conf, msg= MAL_SUCCEED;
+{
+ str conf, msg= MAL_SUCCEED;
if( wlc_state == WLC_STARTUP){
// use default location for master configuration file
- conf = GDKfilepath(0,0,"wlc.config",0);
+ if((conf = GDKfilepath(0,0,"wlc.config",0)) == NULL)
+ throw(MAL,"wlc.init","Could not access wlc.config\n");
if( access(conf,F_OK) ){
GDKfree(conf);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list