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>
This commit is contained in:
Dirk Hohndel 2013-01-25 16:17:55 -08:00
parent 3ab27e65e8
commit 3f261f56f3
4 changed files with 9 additions and 11 deletions

View file

@ -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);