initialize StringBuffer to NULL, as some code paths lead to it being tested without ever being set.

svn path=/trunk/; revision=17274
This commit is contained in:
Royce Mitchell III 2005-08-11 02:51:51 +00:00
parent f9b3f28fbe
commit eb742a2d70

View 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 */