X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fmsglog.c;h=20cfe3a3b2a74384b9073a64bf8ea3daf9881189;hb=8f7af0acaf8a9253242d89fcdb26e285841f7833;hp=7fe6555f19dc4acc8f0d16ff3812392f5d9fbbd9;hpb=7f0d18e1c856e42ef8fc910d785baace2900f7e6;p=pspp diff --git a/src/output/msglog.c b/src/output/msglog.c index 7fe6555f19..20cfe3a3b2 100644 --- a/src/output/msglog.c +++ b/src/output/msglog.c @@ -57,7 +57,6 @@ struct output_driver * msglog_create (const char *file_name) { enum settings_output_devices type; - struct msglog_driver *ml; FILE *file; struct file_handle *handle = fh_create_file (NULL, file_name, NULL, fh_default_properties ()); @@ -73,7 +72,7 @@ msglog_create (const char *file_name) ? SETTINGS_DEVICE_TERMINAL : SETTINGS_DEVICE_UNFILTERED); - ml = xzalloc (sizeof *ml); + struct msglog_driver *ml = XZALLOC (struct msglog_driver); ml->handle = handle; output_driver_init (&ml->driver, &msglog_class, file_name, type); ml->file = file;