From bea6c580f25b47cdccb3f088140cb15acbb02e06 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 19 Oct 2007 08:49:07 +0000 Subject: Fixed bug 842 (segv in gpgconf) --- tools/gpgconf-comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gpgconf-comp.c') diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 0f91edf44..ded646f7b 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -1880,7 +1880,7 @@ retrieve_options_from_file (gc_component_t component, gc_backend_t backend) list_option->active = 1; list_option->value = list; - if (fclose (list_file) && ferror (list_file)) + if (list_file && fclose (list_file) && ferror (list_file)) gc_error (1, errno, "error closing %s", list_pathname); xfree (line); } -- cgit v1.2.3