[vlc-commits] commit: utf8_vfprintf(): handle ToLocale() failure ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Wed Nov 3 16:18:36 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 3 17:18:10 2010 +0200| [0512fd3c82607eea683f9d833ecab4835f779b52] | committer: Rémi Denis-Courmont
utf8_vfprintf(): handle ToLocale() failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0512fd3c82607eea683f9d833ecab4835f779b52
---
src/text/unicode.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/text/unicode.c b/src/text/unicode.c
index 313bbed..5b40abc 100644
--- a/src/text/unicode.c
+++ b/src/text/unicode.c
@@ -189,6 +189,8 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
char *ansi = ToLocaleDup (str);
free (str);
+ if (ansi == NULL)
+ return -1;
fputs (ansi, stream);
free (ansi);
return res;
More information about the vlc-commits
mailing list