[pywin32-checkins] /hgroot/pywin32/pywin32: Initialize PCREDENTIAL (bug #670)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2014-06-03 14:45:45
|
changeset 2c46390ed106 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=2c46390ed106 summary: Initialize PCREDENTIAL (bug #670) diffstat: win32/src/win32credmodule.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 2e9e6d6bf4a3 -r 2c46390ed106 win32/src/win32credmodule.cpp --- a/win32/src/win32credmodule.cpp Mon May 26 10:21:01 2014 +1000 +++ b/win32/src/win32credmodule.cpp Tue Jun 03 10:45:01 2014 -0400 @@ -639,7 +639,7 @@ PyObject *obtargetname, *ret=NULL; WCHAR *targetname=NULL; DWORD cred_type, flags=0; - PCREDENTIAL cred; + PCREDENTIAL cred = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "Ok|k:CredRead", keywords, &obtargetname, // @pyparm <o PyUnicode>|TargetName||The target of the credentials to retrieve &cred_type, // @pyparm int|Type||One of the CRED_TYPE_* constants |