From: Royce Mitchell III Date: Thu, 11 Aug 2005 02:51:51 +0000 (+0000) Subject: initialize StringBuffer to NULL, as some code paths lead to it being tested without... X-Git-Tag: ReactOS-0.2.8~1107 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=eb742a2d70061f6765a782abd69fd08ba8293f3b;ds=sidebyside initialize StringBuffer to NULL, as some code paths lead to it being tested without ever being set. svn path=/trunk/; revision=17274 --- diff --git a/reactos/ntoskrnl/ob/object.c b/reactos/ntoskrnl/ob/object.c index 6bd1b7a9548..f931029fd22 100644 --- a/reactos/ntoskrnl/ob/object.c +++ b/reactos/ntoskrnl/ob/object.c @@ -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 */