Commit e2c672da authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

gst/goom/goomsl.c: Check return value of fread() to avoid compiler warnings.

Original commit message from CVS:
* gst/goom/goomsl.c: (gsl_read_file):
Check return value of fread() to avoid compiler warnings.
parent 7964bd1e
2008-04-02 Tim-Philipp Müller <tim at centricular dot net>
* gst/goom/goomsl.c: (gsl_read_file):
Check return value of fread() to avoid compiler warnings.
2008-04-01 Wim Taymans <wim.taymans@collabora.co.uk>
Based on patch by: mersad <mersad at axis dot com>
......
common @ 5421815a
Subproject commit 4221e9dcb05faa6f6f7ba19bba32fe90da4577dd
Subproject commit 5421815aeed8b2d73a4d4d4a4b8eb2c93f1b7d02
......@@ -1609,7 +1609,9 @@ gsl_read_file (const char *fname)
fsize = ftell (f);
rewind (f);
buffer = (char *) malloc (fsize + 512);
fread (buffer, 1, fsize, f);
if (fread (buffer, 1, fsize, f) != fsize) {
buffer[0] = '\0';
}
fclose (f);
buffer[fsize] = 0;
return buffer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment