Changeset: 42541f02b039 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=42541f02b039
Modified Files:
        clients/mapiclient/mclient.c
        clients/mapiclient/msqldump.c
        clients/mapiclient/stethoscope.c
Branch: default
Log Message:

Initialize properly the DotMonetdb struct


diffs (36 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -3186,7 +3186,7 @@ main(int argc, char **argv)
        char *command = NULL;
        char *dbname = NULL;
        char *output = NULL;    /* output format as string */
-       DotMonetdb dotfile;
+       DotMonetdb dotfile = {};
        FILE *fp = NULL;
        bool trace = false;
        bool dump = false;
diff --git a/clients/mapiclient/msqldump.c b/clients/mapiclient/msqldump.c
--- a/clients/mapiclient/msqldump.c
+++ b/clients/mapiclient/msqldump.c
@@ -57,7 +57,7 @@ main(int argc, char **argv)
        char *passwd = NULL;
        char *host = NULL;
        char *dbname = NULL;
-       DotMonetdb dotfile;
+       DotMonetdb dotfile = {};
        bool trace = false;
        bool describe = false;
        bool functions = false;
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -130,7 +130,7 @@ main(int argc, char **argv)
        int done = 0;
        int first = 1;
        EventRecord *ev = (EventRecord *) malloc(sizeof(EventRecord));
-       DotMonetdb dotfile;
+       DotMonetdb dotfile = {};
 
        (void) first;
        memset(ev, 0, sizeof(EventRecord));
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to