[Android] std_logger: fix typos

Zhao Zhili git at videolan.org
Thu Nov 21 17:06:02 CET 2019


vlc-android | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Wed Nov 13 20:55:45 2019 +0800| [dd265876a3a969cb754fe50b1f083d6f113f9c72] | committer: Geoffrey Métais

std_logger: fix typos

> https://code.videolan.org/videolan/vlc-android/commit/dd265876a3a969cb754fe50b1f083d6f113f9c72
---

 libvlc/jni/std_logger.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvlc/jni/std_logger.c b/libvlc/jni/std_logger.c
index c37a38fef..db32968fa 100644
--- a/libvlc/jni/std_logger.c
+++ b/libvlc/jni/std_logger.c
@@ -126,7 +126,7 @@ std_logger_Open(const char *TAG)
     sys->TAG = TAG;
     sys->stop_pipe[0] = sys->stop_pipe[1] =
     sys->stdout_pipe[0] = sys->stdout_pipe[1] =
-    sys->old_stdout = sys->old_stderr = -1;
+    sys->stderr_pipe[0] = sys->stderr_pipe[1] = -1;
 
     /* save the old stdout/stderr fd to restore it when logged is closed */
     sys->old_stdout = dup(STDOUT_FILENO);
@@ -167,7 +167,7 @@ std_logger_Close(std_logger *sys)
 {
     if (sys->stop_pipe[1] != -1)
     {
-        write(sys->stop_pipe[1], "\0", 1);
+        write(sys->stop_pipe[1], "", 1);
         close(sys->stop_pipe[1]);
         sys->stop_pipe[1] = -1;
         pthread_join(sys->thread, NULL);



More information about the Android mailing list