changeset 17766:b8be9bedc108

initialize f to NULL, needed if desc=malloc... fails
author reimar
date Wed, 08 Mar 2006 10:04:05 +0000
parents 7bf483eaa99a
children 61227210498e
files libvo/font_load.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/font_load.c	Wed Mar 08 00:21:44 2006 +0000
+++ b/libvo/font_load.c	Wed Mar 08 10:04:05 2006 +0000
@@ -47,7 +47,7 @@
 unsigned char sor[1024];
 unsigned char sor2[1024];
 font_desc_t *desc;
-FILE *f;
+FILE *f = NULL;
 char *dn;
 struct stat fstate;
 char section[64];