]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a link error on MacOS X.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Jan 2005 15:10:04 +0000 (15:10 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:08 +0000 (12:12 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/progname.c

index aa25a8f8ebb731d87ece5297ede4db7c0e31edb4..4f91f9a621aff9047fc5076bad31ccf0e47527b0 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-27  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (libgettextlib_la_SOURCES): Remove strtoul.c.
index 8453706c9341051b1a397bb55b3976064469c3c7..9917efa9ce854e89c09ecb67a519a592f3e8d3be 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