core: clear error before use

This commit is contained in:
Dan Williams
2010-05-01 22:34:59 -07:00
parent 4c3eedd955
commit de5f1bd4e9
+1
View File
@@ -1047,6 +1047,7 @@ mm_serial_port_flash (MMSerialPort *self,
g_error_free (error);
return FALSE;
}
g_clear_error (&error);
info = g_slice_new0 (FlashInfo);
info->port = self;