From 4e4ed0189337953273209cc3525590e7e6fe5090 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Tue, 19 Aug 2008 07:21:27 -0300 Subject: 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 --- python-ethtool/ethtool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python-ethtool') 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; -- cgit