Enlightenment CVS committal
Author : rbdpngn
Project : eterm
Module : libast
Dir : eterm/libast/src
Modified Files:
conf.c options.c
Log Message:
Initialize global variables to avoid linking issues on OS X.
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/src/conf.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- conf.c 23 Jul 2004 21:38:39 -0000 1.24
+++ conf.c 21 Oct 2004 20:03:16 -0000 1.25
@@ -31,7 +31,7 @@
* @author Michael Jennings <[EMAIL PROTECTED]>
*/
-static const char __attribute__((unused)) cvs_ident[] = "$Id: conf.c,v 1.24
2004/07/23 21:38:39 mej Exp $";
+static const char __attribute__((unused)) cvs_ident[] = "$Id: conf.c,v 1.25
2004/10/21 20:03:16 rbdpngn Exp $";
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -61,8 +61,8 @@
const char *true_vals[] = { "1", "on", "true", "yes" };
const char *false_vals[] = { "0", "off", "false", "no" };
-fstate_t *fstate;
-unsigned char fstate_idx;
+fstate_t *fstate = NULL;
+unsigned char fstate_idx = 0;
/***** The Config File Section *****/
/* This function must be called before any other spifconf_*() function.
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/src/options.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- options.c 23 Jul 2004 21:38:39 -0000 1.15
+++ options.c 21 Oct 2004 20:03:17 -0000 1.16
@@ -29,11 +29,11 @@
* option parser.
*
* @author Michael Jennings <[EMAIL PROTECTED]>
- * $Revision: 1.15 $
- * $Date: 2004/07/23 21:38:39 $
+ * $Revision: 1.16 $
+ * $Date: 2004/10/21 20:03:17 $
*/
-static const char __attribute__((unused)) cvs_ident[] = "$Id: options.c,v 1.15
2004/07/23 21:38:39 mej Exp $";
+static const char __attribute__((unused)) cvs_ident[] = "$Id: options.c,v 1.16
2004/10/21 20:03:17 rbdpngn Exp $";
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -75,7 +75,7 @@
* @see @link DOXGRP_OPT Command Line Option Parser @endlink
* @ingroup DOXGRP_OPT
*/
-spifopt_settings_t spifopt_settings;
+spifopt_settings_t spifopt_settings = { 0 };
/**
* Option-type-to-string translator.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs