diff options
author | FRIGN <dev@frign.de> | 2015-12-08 16:57:22 +0100 |
---|---|---|
committer | FRIGN <dev@frign.de> | 2015-12-08 16:57:22 +0100 |
commit | dbfeeacb8c678974f89eb1fd09a7ef6a6076c8fb (patch) | |
tree | c778a930fee0416586ac8099743595e2b8dcb154 /jpg2ff.c | |
parent | 52d94b6551b4103649d76a61ccd3b56ae983daa6 (diff) |
fix segfault on JPG error
thanks Quentin Rameau!
Diffstat (limited to 'jpg2ff.c')
-rw-r--r-- | jpg2ff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ main(int argc, char *argv[]) struct jpeg_decompress_struct cinfo; struct jpeg_error_mgr jerr; uint32_t width, height, val_be; - uint16_t *ff_row; + uint16_t *ff_row = NULL; size_t jpeg_row_len, ff_row_len, i, dx, sx; int ret = 1; JSAMPARRAY buffer; /* output row buffer */ |