commit aa0926921193099319156437044e75e4b7b702e1 from: Stefan Sperling date: Thu Jul 23 14:22:40 2020 UTC initialize output parameter of got_object_blob_read_to_str(); found by ofree commit - cf0e59fe1a0f4e26a3cad1593337c6c93245fc02 commit + aa0926921193099319156437044e75e4b7b702e1 blob - 102953c89fd18f475a1f3d905c286a6f7fb4fa9b blob + b840da129287ae16d17c02686ba0926e3de5196e --- lib/object.c +++ lib/object.c @@ -868,6 +868,8 @@ got_object_blob_read_to_str(char **s, struct got_blob_ { const struct got_error *err = NULL; size_t len, totlen, hdrlen, offset; + + *s = NULL; hdrlen = got_object_blob_get_hdrlen(blob); totlen = 0;