aboutsummaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-25 16:17:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-25 16:28:37 -0800
commit3f261f56f3401695d0577598624dddc09243b371 (patch)
tree65826e8fb34827a2bb4a417ef5595023610d595c /gtk-gui.c
parent3ab27e65e8086199d6d23f0bd5d6f5a22b37a349 (diff)
downloadsubsurface-3f261f56f3401695d0577598624dddc09243b371.tar.gz
Remove some unnecessary variable initializations
Not really bugs, just wasted. They clutter up the output of static analysis with cppcheck. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 8817d05b8..f6d81aca9 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1173,7 +1173,7 @@ static void cell_edited_cb(GtkCellRendererText *cell, gchar *path,
holdnicknames->nickname = strdup(new_text);
holdnicknames->next = NULL;
} else {
- struct device_info * top = NULL;
+ struct device_info * top;
struct device_info * last = holdnicknames;
top = (struct device_info *) malloc(sizeof( struct device_info ));
top->model = strdup(model);