Changeset: 0785a7399d5a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0785a7399d5a
Modified Files:
        sql/backends/monet5/vaults/gadget/gadget.c
Branch: data-vaults
Log Message:

Initialize the bins variable

This is needed so that clang will not complain, although the warning is indeed
worrying. We probably need to refactor this code a little.


diffs (12 lines):

diff --git a/sql/backends/monet5/vaults/gadget/gadget.c 
b/sql/backends/monet5/vaults/gadget/gadget.c
--- a/sql/backends/monet5/vaults/gadget/gadget.c
+++ b/sql/backends/monet5/vaults/gadget/gadget.c
@@ -255,7 +255,7 @@ str gadgetListDirAll(Client cntxt, MalBl
     while ((ep = readdir(dp)) != NULL && !msg) {
       if (ep->d_name[0] != '.') {
         char *snapnum, *ptr = NULL;
-        PHBins bins;
+               PHBins bins = { .numBins = 0, .id = NULL, .start = NULL, .count 
= NULL};
         snprintf(fname, BUFSIZ, "%s/%s", dir, ep->d_name);
 
         /*Open the file*/
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to