Mercurial > geeqie.yaz
comparison src/utilops.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 | deb0876c29d2 |
| children | 67573155210c |
comparison
equal
deleted
inserted
replaced
| 1366:ff3cd67235af | 1367:fe4da037be21 |
|---|---|
| 339 static UtilityData *file_util_data_new(UtilityType type) | 339 static UtilityData *file_util_data_new(UtilityType type) |
| 340 { | 340 { |
| 341 UtilityData *ud; | 341 UtilityData *ud; |
| 342 | 342 |
| 343 ud = g_new0(UtilityData, 1); | 343 ud = g_new0(UtilityData, 1); |
| 344 | |
| 344 ud->type = type; | 345 ud->type = type; |
| 345 ud->phase = UTILITY_PHASE_START; | 346 ud->phase = UTILITY_PHASE_START; |
| 346 ud->update_idle_id = -1; | 347 ud->update_idle_id = -1; |
| 347 ud->perform_idle_id = -1; | 348 ud->perform_idle_id = -1; |
| 348 ud->external_command = NULL; | 349 |
| 349 return ud; | 350 return ud; |
| 350 } | 351 } |
| 351 | 352 |
| 352 static void file_util_data_free(UtilityData *ud) | 353 static void file_util_data_free(UtilityData *ud) |
| 353 { | 354 { |
