projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3da9e71
)
vesa: Fix double close() bug in vesacon_load_background()
author
Matt Fleming
<matt.fleming@intel.com>
Thu, 15 Nov 2012 21:27:59 +0000
(21:27 +0000)
committer
Matt Fleming
<matt.fleming@intel.com>
Thu, 15 Nov 2012 21:27:59 +0000
(21:27 +0000)
We always call fclose() on 'fp' if fopen() was successful, so delete
the extraneous fclose() call in read_jpeg_file().
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/sys/vesa/background.c
patch
|
blob
|
history
diff --git
a/com32/lib/sys/vesa/background.c
b/com32/lib/sys/vesa/background.c
index
9357746
..
15e9089
100644
(file)
--- a/
com32/lib/sys/vesa/background.c
+++ b/
com32/lib/sys/vesa/background.c
@@
-205,7
+205,6
@@
static int read_jpeg_file(FILE * fp, uint8_t * header, int len)
unsigned int bytes_per_row[1];
rv = floadfile(fp, &jpeg_file, &length_of_file, header, len);
- fclose(fp);
if (rv)
goto err;