diff options
author | Daryl McDaniel <daryl.mcdaniel@intel.com> | 2014-08-18 23:00:50 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-18 23:00:50 +0000 |
commit | de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4 (patch) | |
tree | 642e66c50c086c89cfdaa97614552a9473dcce0a /AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c | |
parent | 838b31a68cba781fb64ae4deb97fa69b2ed6d4b8 (diff) | |
download | edk2-platforms-de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4.tar.xz |
AppPkg/Applications/Python: Explicitly initialize variables before use to keep newer compilers happy.
Explicitly initialize variables before any potential use.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15819 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c')
-rw-r--r-- | AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c b/AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c index 36682beb1c..652f45f5b8 100644 --- a/AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c +++ b/AppPkg/Applications/Python/Python-2.7.2/Modules/socketmodule.c @@ -1369,9 +1369,9 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args, {
struct sockaddr_hci *addr = (struct sockaddr_hci *)addr_ret;
#if defined(__NetBSD__) || defined(__DragonFly__)
- char *straddr = PyBytes_AS_STRING(args);
+ char *straddr = PyBytes_AS_STRING(args);
- _BT_HCI_MEMB(addr, family) = AF_BLUETOOTH;
+ _BT_HCI_MEMB(addr, family) = AF_BLUETOOTH;
if (straddr == NULL) {
PyErr_SetString(socket_error, "getsockaddrarg: "
"wrong format");
@@ -2824,7 +2824,7 @@ static PyObject * sock_sendto(PySocketSockObject *s, PyObject *args)
{
Py_buffer pbuf;
- PyObject *addro;
+ PyObject *addro = NULL;
char *buf;
Py_ssize_t len;
sock_addr_t addrbuf;
|