From cb808b077d9f1edf24da2268c6993a6d2793276b Mon Sep 17 00:00:00 2001 From: drepper Date: Fri, 19 Sep 1997 12:11:22 +0000 Subject: [PATCH] (catopen): Correctly allocate string of nlspath. --- catgets/catgets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catgets/catgets.c b/catgets/catgets.c index d5eefc9e08..ebfb2c54cc 100644 --- a/catgets/catgets.c +++ b/catgets/catgets.c @@ -94,8 +94,9 @@ catopen (const char *cat_name, int flag) nlspath = tmp; } else - result->nlspath = __strdup (NLSPATH); + nlspath = NLSPATH; + result->nlspath = __strdup (NLSPATH); if (result->nlspath == NULL) { free ((void *) result->cat_name); -- 2.11.0