initialize StringBuffer to NULL, as some code paths lead to it being tested without...
[reactos.git] / 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;
-    PWCHAR StringBuffer;
+    PWCHAR StringBuffer = NULL;
     UNICODE_STRING LocalName = {}; /* <= GCC 4.0 + Optimizer */
     
     /* Initialize the Input String */