mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-05 01:47:58 +02:00
enroll: Cleanup error with autoptr
This commit is contained in:
parent
6a5d46c8b0
commit
827baff301
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue