[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/gl
From: |
shishi-commit |
Subject: |
CVS shishi/gl |
Date: |
Wed, 08 Sep 2004 14:39:43 +0200 |
Update of /home/cvs/shishi/gl
In directory dopio:/tmp/cvs-serv4251/gl
Modified Files:
progname.c progname.h
Log Message:
Fix progname.
--- /home/cvs/shishi/gl/progname.c 2004/09/08 12:30:23 1.2
+++ /home/cvs/shishi/gl/progname.c 2004/09/08 12:39:42 1.3
@@ -1,5 +1,5 @@
/* Program name management.
- Copyright (C) 2001-2003 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004 Free Software Foundation, Inc.
Written by Bruno Haible <address@hidden>, 2001.
This program is free software; you can redistribute it and/or modify
@@ -59,7 +59,8 @@
char *
get_short_program_name (void)
{
- const char *slash;
- slash = strrchr (program_name, '/');
+ const char *slash = NULL;
+ if (program_name)
+ slash = strrchr (program_name, '/');
return slash != NULL ? slash + 1 : program_name;
}
--- /home/cvs/shishi/gl/progname.h 2004/09/08 12:30:23 1.4
+++ /home/cvs/shishi/gl/progname.h 2004/09/08 12:39:42 1.5
@@ -16,8 +16,8 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#ifndef _PROGNAME_H
-#define _PROGNAME_H
+#ifndef PROGNAME_H
+#define PROGNAME_H
/* Programs using this file should do the following in main():
set_program_name (argv[0]);
@@ -47,4 +47,4 @@
#endif
-#endif /* _PROGNAME_H */
+#endif /* PROGNAME_H */
- CVS shishi/gl, shishi-commit, 2004/09/03
- CVS shishi/gl, shishi-commit, 2004/09/08
- CVS shishi/gl,
shishi-commit <=
- CVS shishi/gl, shishi-commit, 2004/09/16
- CVS shishi/gl, shishi-commit, 2004/09/17
- CVS shishi/gl, shishi-commit, 2004/09/17
- CVS shishi/gl, shishi-commit, 2004/09/17