Fix a link error on MacOS X.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Jan 2005 15:11:35 +0000 (15:11 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 29 Jan 2005 15:11:35 +0000 (15:11 +0000)
lib/ChangeLog
lib/progname.c

index 547756e..ff10ee1 100644 (file)
@@ -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.
index 8453706..9917efa 100644 (file)
@@ -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