enroll: Cleanup error with autoptr

This commit is contained in:
Marco Trevisan (Treviño)
2020-01-29 22:37:22 +01:00
committed by Benjamin Berg
parent 6a5d46c8b0
commit 827baff301

View File

@ -179,7 +179,7 @@ int main(int argc, char **argv)
{
g_autoptr(FprintDBusDevice) dev = NULL;
GOptionContext *context;
GError *err = NULL;
g_autoptr(GError) err = NULL;
setlocale (LC_ALL, "");
@ -188,7 +188,6 @@ int main(int argc, char **argv)
if (g_option_context_parse (context, &argc, &argv, &err) == FALSE) {
g_print ("couldn't parse command-line options: %s\n", err->message);
g_error_free (err);
return 1;
}