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&…
==============================================================================
--- 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)
{