changeset 5630:bff122f8ce16

Fix a link error on MacOS X.
author Bruno Haible <bruno@clisp.org>
date Sat, 29 Jan 2005 15:11:35 +0000
parents 265134ee1731
children c51bf3eed9e7
files lib/ChangeLog lib/progname.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-29  Bruno Haible  <bruno@clisp.org>
+
+	* progname.c (program_name): Initialize.
+	Needed when linking statically on MacOS X.
+
 2005-01-28  Bruno Haible  <bruno@clisp.org>
 
 	* javacomp.sh.in: New file, from GNU gettext.
--- a/lib/progname.c
+++ b/lib/progname.c
@@ -1,5 +1,5 @@
 /* Program name management.
-   Copyright (C) 2001-2003 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -31,7 +31,7 @@
 
 /* String containing name the program is called with.
    To be initialized by main().  */
-const char *program_name;
+const char *program_name = NULL;
 
 /* Set program_name, based on argv[0].  */
 void