X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/ea9655907d37782a2a505caee22f2458058784ee..250526464d1a224138f60b97a745cadd9960bac9:/src/image.c diff --git a/src/image.c b/src/image.c index 81f66e0..e1fd3bb 100644 --- a/src/image.c +++ b/src/image.c @@ -29,7 +29,7 @@ struct lbx_image { struct lbx_image *lbximg_fopen(FILE *f) { - struct lbx_image tmp = {.f = f}, *new; + struct lbx_image tmp = {.f = f}, *new = NULL; if (fread(&tmp.width, sizeof tmp.width, 1, f) != 1) goto readerr; if (fread(&tmp.height, sizeof tmp.height, 1, f) != 1) goto readerr;