From f6520166f41d58832351d35cfa987ecbb44f5986 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Fri, 18 Oct 2013 23:27:45 -0400 Subject: [PATCH] Allow fill_archive to be called with NULL fname. The fill_archive function should support being called with a NULL fname argument. A NULL fname argument indicates that the default archive should be opened. We enable this by setting ah.fname to NULL before initializing ah or calling open_archive. This way if fname is NULL then ah.fname remains NULL and open_archive opens the default archive. --- build-locale-archive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/build-locale-archive.c b/build-locale-archive.c index 0c218b9..9715afd 100644 --- a/build-locale-archive.c +++ b/build-locale-archive.c @@ -311,6 +311,7 @@ fill_archive (struct locarhandle *tmpl_ah, /* Open the archive. This call never returns if we cannot successfully open the archive. */ + ah.fname = NULL; if (fname != NULL) ah.fname = fname; open_archive (&ah, false);