mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3ab27e65e8
commit
3f261f56f3
4 changed files with 9 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue