initialize StringBuffer to NULL, as some code paths lead to it being tested without...
authorRoyce Mitchell III <royce3@ev1.net>
Thu, 11 Aug 2005 02:51:51 +0000 (02:51 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Thu, 11 Aug 2005 02:51:51 +0000 (02:51 +0000)
svn path=/trunk/; revision=17274

reactos/ntoskrnl/ob/object.c

index 6bd1b7a..f931029 100644 (file)
@@ -35,7 +35,7 @@ ObpCaptureObjectName(IN OUT PUNICODE_STRING CapturedName,
 {
     NTSTATUS Status = STATUS_SUCCESS;
     ULONG StringLength;
 {
     NTSTATUS Status = STATUS_SUCCESS;
     ULONG StringLength;
-    PWCHAR StringBuffer;
+    PWCHAR StringBuffer = NULL;
     UNICODE_STRING LocalName = {}; /* <= GCC 4.0 + Optimizer */
     
     /* Initialize the Input String */
     UNICODE_STRING LocalName = {}; /* <= GCC 4.0 + Optimizer */
     
     /* Initialize the Input String */