summaryrefslogtreecommitdiff
path: root/src/cgg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgg.c')
-rw-r--r--src/cgg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cgg.c b/src/cgg.c
index 00101c8..c158dfd 100644
--- a/src/cgg.c
+++ b/src/cgg.c
@@ -121,13 +121,11 @@ main (int argc, char* argv[])
/* Initialize ImageMagick at this point, for multithreading safety */
MagickWandGenesis();
- setup = g_malloc0 (sizeof (TGallerySetup));
-
/* Parse commandline */
if (! parse_cmd (argc, argv))
return -1;
- if ((! source_dir) || (access (source_dir, R_OK))) {
+ if (! source_dir || access (source_dir, R_OK)) {
fprintf (stderr, "error: source directory must be specified and pointing to valid structure\n");
return -4;
}