summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-08-19 07:21:27 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-08-19 07:21:27 -0300
commit4e4ed0189337953273209cc3525590e7e6fe5090 (patch)
tree92462c329d75d4ccdcdc2341319079da108b3dec
parent0207ecbf9e18976125160b3d587f2032827cd660 (diff)
downloadpython-ethtool-4e4ed0189337953273209cc3525590e7e6fe5090.tar.gz
python-ethtool-4e4ed0189337953273209cc3525590e7e6fe5090.tar.xz
python-ethtool-4e4ed0189337953273209cc3525590e7e6fe5090.zip
ethtool: initialize some variables to shut up gcc
python-ethtool/ethtool.c: In function 'get_tso': python-ethtool/ethtool.c:480: warning: 'value' may be used uninitialized in this function Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--python-ethtool/ethtool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index cbc083d..7ffd375 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -477,7 +477,7 @@ static int dev_set_int_value(int cmd, PyObject *args)
static PyObject *get_tso(PyObject *self __unused, PyObject *args)
{
- int value;
+ int value = 0;
if (get_dev_int_value(ETHTOOL_GTSO, args, &value) < 0)
return NULL;
@@ -496,7 +496,7 @@ static PyObject *set_tso(PyObject *self __unused, PyObject *args)
static PyObject *get_ufo(PyObject *self __unused, PyObject *args)
{
- int value;
+ int value = 0;
if (get_dev_int_value(ETHTOOL_GUFO, args, &value) < 0)
return NULL;
@@ -506,7 +506,7 @@ static PyObject *get_ufo(PyObject *self __unused, PyObject *args)
static PyObject *get_gso(PyObject *self __unused, PyObject *args)
{
- int value;
+ int value = 0;
if (get_dev_int_value(ETHTOOL_GGSO, args, &value) < 0)
return NULL;
@@ -516,7 +516,7 @@ static PyObject *get_gso(PyObject *self __unused, PyObject *args)
static PyObject *get_sg(PyObject *self __unused, PyObject *args)
{
- int value;
+ int value = 0;
if (get_dev_int_value(ETHTOOL_GSG, args, &value) < 0)
return NULL;