66721a
commit 34dd8493de39314033509bb7ad62673f33dcf3db
66721a
Author: Ivo Raisr <ivosh@ivosh.net>
66721a
Date:   Thu Aug 3 05:22:01 2017 +0000
66721a
66721a
    Fix handling command line option --xml-socket.
66721a
    Fixes BZ#382998
66721a
    Patch by: Orgad Shaneh <orgads@gmail.com>
66721a
    
66721a
    
66721a
    
66721a
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16467
66721a
66721a
diff --git a/coregrind/m_libcprint.c b/coregrind/m_libcprint.c
66721a
index d66c67d..f6ba202 100644
66721a
--- a/coregrind/m_libcprint.c
66721a
+++ b/coregrind/m_libcprint.c
66721a
@@ -526,7 +526,7 @@ void VG_(init_log_xml_sinks)(VgLogTo log_to, VgLogTo xml_to,
66721a
          break;
66721a
 
66721a
       case VgLogTo_Socket:
66721a
-         log_fd = prepare_sink_socket(VG_(clo_xml_fname_unexpanded),
66721a
+         xml_fd = prepare_sink_socket(VG_(clo_xml_fname_unexpanded),
66721a
                                       &VG_(xml_output_sink), True);
66721a
          break;
66721a
    }