[ros-diffs] [cwittich] 46254: try to fix valgrind warnings

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Mar 17 22:59:22 CET 2010


Author: cwittich
Date: Wed Mar 17 22:59:22 2010
New Revision: 46254

URL: http://svn.reactos.org/svn/reactos?rev=46254&view=rev
Log:
try to fix valgrind warnings

Modified:
    trunk/tools/sysreg2/console.c

Modified: trunk/tools/sysreg2/console.c
URL: http://svn.reactos.org/svn/reactos/trunk/tools/sysreg2/console.c?rev=46254&r1=46253&r2=46254&view=diff
==============================================================================
--- trunk/tools/sysreg2/console.c [iso-8859-1] (original)
+++ trunk/tools/sysreg2/console.c [iso-8859-1] Wed Mar 17 22:59:22 2010
@@ -25,7 +25,8 @@
 
     /* Initialize CacheBuffer with an empty string */
     *CacheBuffer = 0;
-
+    memset(Buffer, 0, BUFFER_SIZE);
+    
     /* ttyfd is the file descriptor of the virtual COM port */
     if ((ttyfd = open(tty, O_NOCTTY | O_RDWR)) < 0)
     {




More information about the Ros-diffs mailing list