[vlc-commits] vlc_xml_encode: fix inverted logic
Rémi Denis-Courmont
git at videolan.org
Sat Feb 25 09:04:45 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 25 10:04:36 2017 +0200| [a14539313bf8703d42d17aa8b636fc69b61a4756] | committer: Rémi Denis-Courmont
vlc_xml_encode: fix inverted logic
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a14539313bf8703d42d17aa8b636fc69b61a4756
---
src/text/strings.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/text/strings.c b/src/text/strings.c
index 45d72a1..eb45145 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -295,7 +295,7 @@ char *vlc_xml_encode (const char *str)
{
if (unlikely(n == (size_t)-1))
{
- if (vlc_memstream_close(&stream))
+ if (vlc_memstream_close(&stream) == 0)
free(stream.ptr);
errno = EILSEQ;
return NULL;
More information about the vlc-commits
mailing list