summaryrefslogtreecommitdiff
path: root/stream/upb_strstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/upb_strstream.c')
-rw-r--r--stream/upb_strstream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/upb_strstream.c b/stream/upb_strstream.c
index 65f33d9..7ed761b 100644
--- a/stream/upb_strstream.c
+++ b/stream/upb_strstream.c
@@ -53,6 +53,7 @@ static upb_bytesrc_vtable upb_stringsrc_vtbl = {
upb_stringsrc *upb_stringsrc_new() {
upb_stringsrc *s = malloc(sizeof(*s));
+ s->str = NULL;
upb_bytesrc_init(&s->bytesrc, &upb_stringsrc_vtbl);
return s;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback