Mercurial > geeqie
comparison src/editors.c @ 1367:fe4da037be21
When g_new0() is used, drop redundant initializations to NULL, FALSE or 0, second pass.
| author | zas_ |
|---|---|
| date | Sun, 01 Mar 2009 23:14:19 +0000 |
| parents | e8f21b91885d |
| children | a0bd58a6535f |
comparison
equal
deleted
inserted
replaced
| 1366:ff3cd67235af | 1367:fe4da037be21 |
|---|---|
| 1055 ed = g_new0(EditorData, 1); | 1055 ed = g_new0(EditorData, 1); |
| 1056 ed->list = filelist_copy(list); | 1056 ed->list = filelist_copy(list); |
| 1057 ed->flags = flags; | 1057 ed->flags = flags; |
| 1058 ed->editor = editor; | 1058 ed->editor = editor; |
| 1059 ed->total = (flags & EDITOR_SINGLE_COMMAND) ? 1 : g_list_length(list); | 1059 ed->total = (flags & EDITOR_SINGLE_COMMAND) ? 1 : g_list_length(list); |
| 1060 ed->count = 0; | |
| 1061 ed->stopping = FALSE; | |
| 1062 ed->callback = cb; | 1060 ed->callback = cb; |
| 1063 ed->data = data; | 1061 ed->data = data; |
| 1064 | 1062 |
| 1065 if ((flags & EDITOR_VERBOSE_MULTI) && list && list->next) | 1063 if ((flags & EDITOR_VERBOSE_MULTI) && list && list->next) |
| 1066 flags |= EDITOR_VERBOSE; | 1064 flags |= EDITOR_VERBOSE; |
