Changeset: 7c738ccf71c6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7c738ccf71c6
Modified Files:
gdk/gdk_bbp.c
Branch: default
Log Message:
initialize local buf to silence Werror=maybe-uninitialized on Alpine
diffs (21 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -640,7 +640,7 @@ BBPreadBBPline(FILE *fp, unsigned bbpver
#endif
char *batname, char *filename, char **options)
{
- char buf[4096];
+ char buf[4096] = {0};
uint64_t batid;
unsigned int properties;
int nread, n;
@@ -1022,7 +1022,7 @@ BBPcheckbats(unsigned bbpversion)
unsigned
BBPheader(FILE *fp, int *lineno, bat *bbpsize, lng *logno, bool
allow_hge_upgrade)
{
- char buf[BUFSIZ];
+ char buf[BUFSIZ] = {0};
int sz, ptrsize, oidsize, intsize;
unsigned bbpversion;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]