X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-12-store.c;h=0b3c29651c44b2cebcc9b4c4fb09754f15afa423;hp=2cc3e86b6a50bb2c650ffdf5aff453c6ca8f4c31;hb=efdf0f2d8f34b4c01c82c558b350ec36c7329b1e;hpb=b21004624683be5bf1d8f75e3b5be4e9618049ee diff --git a/ccan/tdb2/test/run-12-store.c b/ccan/tdb2/test/run-12-store.c index 2cc3e86b..0b3c2965 100644 --- a/ccan/tdb2/test/run-12-store.c +++ b/ccan/tdb2/test/run-12-store.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -50,7 +51,7 @@ int main(int argc, char *argv[]) /* We seemed to lose some keys. * Insert and check they're in there! */ for (j = 0; j < 500; j++) { - struct tdb_data d; + struct tdb_data d = { NULL, 0 }; /* Bogus GCC warning */ ok1(tdb_store(tdb, key, data, TDB_REPLACE) == 0); ok1(tdb_fetch(tdb, key, &d) == TDB_SUCCESS); ok1(equal(d, data));