aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Caseiro <puppetmaster.e17@gmail.com>2006-02-03 13:48:13 +0100
committerPuppet_Master <puppetmaster.e17@gmail.com>2006-02-03 13:48:13 +0100
commitfc4f17afdc58c95c947f4b2ccca32b6143e33a47 (patch)
treeabd6268843b4bc629a59d5c7e19ed24829e42121
parentindent cleanning (diff)
downloadensorcel-fc4f17afdc58c95c947f4b2ccca32b6143e33a47.tar.gz
update todo list
-rw-r--r--.todo3
-rw-r--r--TODO3
-rw-r--r--src/ensorcel_config.h6
-rw-r--r--src/ensorcel_info_get.c9
4 files changed, 20 insertions, 1 deletions
diff --git a/.todo b/.todo
index 4fd7a82..0765a41 100644
--- a/.todo
+++ b/.todo
@@ -2,6 +2,9 @@
<note priority="veryhigh" time="1138738970">
Code Gaze Tool ... gaze what ... gaze frome ... etc ...
</note>
+ <note priority="veryhigh" time="1138970863">
+ Fix SegV with the true ensorcle grimoires ... moarf
+ </note>
<note priority="high" time="1138616590">
Fixer le bug lame contiens lame donc erreur possible
</note>
diff --git a/TODO b/TODO
index 3395534..d3b956b 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,9 @@
- Code Gaze Tool ... gaze what ... gaze frome ... etc ...
(added Tue Jan 31 21:22:50 2006, incomplete, priority veryhigh)
+- Fix SegV with the true ensorcle grimoires ... moarf
+ (added Fri Feb 3 13:47:43 2006, incomplete, priority veryhigh)
+
- Fixer le bug lame contiens lame donc erreur possible
(added Mon Jan 30 11:23:10 2006, incomplete, priority high)
diff --git a/src/ensorcel_config.h b/src/ensorcel_config.h
index 8706f66..d3fed4d 100644
--- a/src/ensorcel_config.h
+++ b/src/ensorcel_config.h
@@ -1,6 +1,7 @@
/* IMAGES */
#define DATAPATH "data/"
#define SPELLPATH "test/"
+#define CONFSORCERYPATH "/etc/sorcery"
#define CROW DATAPATH"images/crow.png"
#define LOGOENSORCEL DATAPATH"images/logo.png"
@@ -21,4 +22,9 @@
/* GRIMOIRE CONFIGURATION */
#define ENSORCELGRIMOIREFILE DATAPATH"grimoire"
#define ENSORCELPACKAGEFILE DATAPATH"packages"
+
+/* FOR SOURCE_MAGE
+#define ENSORCELGRIMOIREFILE CONFSORCERYPATH"/local/grimoire"
+#define ENSORCELPACKAGEFILE "/var/state/sorcery/packages"
+*/
#define ENSORCELDETAILSFILENAME "DETAILS"
diff --git a/src/ensorcel_info_get.c b/src/ensorcel_info_get.c
index 100c84e..7f473f4 100644
--- a/src/ensorcel_info_get.c
+++ b/src/ensorcel_info_get.c
@@ -52,6 +52,7 @@ Ecore_List *ensorcel_packages_info_get ()
if (string)
free (string);
+
fclose (fd);
ecore_list_goto_first (list);
return (list);
@@ -139,7 +140,13 @@ char *ensorcel_spell_lastest_get (Ecore_List * el_info)
char *string;
Ecore_List *list;
- ecore_list_goto_first (el_info);
+ if (!el_info)
+ ensorcel_error_popup("FATAL ERROR");
+
+
+ if (!ecore_list_goto_first (el_info))
+ ensorcel_error_popup("FATAL ERROR");
+
while ((string = ecore_list_next (el_info)))
{
if (ensorcel_str_str ("VERSION", string) == EXIT_SUCCESS)