comparison src/filedata.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 91bed0d66cf2
comparison
equal deleted inserted replaced
1366:ff3cd67235af 1367:fe4da037be21
344 return fd; 344 return fd;
345 } 345 }
346 346
347 fd = g_new0(FileData, 1); 347 fd = g_new0(FileData, 1);
348 348
349 fd->path = NULL;
350 fd->name = NULL;
351 fd->collate_key_name = NULL;
352 fd->collate_key_name_nocase = NULL;
353 fd->original_path = NULL;
354
355 fd->size = st->st_size; 349 fd->size = st->st_size;
356 fd->date = st->st_mtime; 350 fd->date = st->st_mtime;
357 fd->mode = st->st_mode; 351 fd->mode = st->st_mode;
358 fd->thumb_pixbuf = NULL;
359 fd->sidecar_files = NULL;
360 fd->ref = 1; 352 fd->ref = 1;
361 fd->magick = 0x12345678; 353 fd->magick = 0x12345678;
362 354
363 file_data_set_path(fd, path_utf8); /* set path, name, collate_key_*, original_path */ 355 file_data_set_path(fd, path_utf8); /* set path, name, collate_key_*, original_path */
364 356