git » fp-git.git » commit ed51ffb

valgrinized a bit

author ecalot
2005-07-06 20:02:30 UTC
committer ecalot
2005-07-06 20:02:30 UTC
parent 3df7d37c3d230f0a44657004bf811b6d9ad86647

valgrinized a bit

PR/src/lib/actions/export.c +1 -1
PR/src/lib/xml/search.c +2 -0

diff --git a/PR/src/lib/actions/export.c b/PR/src/lib/actions/export.c
index 91d8de2..52d4cf2 100644
--- a/PR/src/lib/actions/export.c
+++ b/PR/src/lib/actions/export.c
@@ -75,7 +75,7 @@ int extract(const char* vFiledat,const char* vDirExt, tResourceList* r, int opti
 	tImage             image; /* this is used to make a persistent palette */
 	unsigned short int numberOfItems;
 	tResourceList      paletteBuffer;
-	tResourceId        bufferedPalette={0,""};
+	tResourceId        bufferedPalette={0,"",0};
 	tResource          res;
 	int                count=0;
 
diff --git a/PR/src/lib/xml/search.c b/PR/src/lib/xml/search.c
index 027946e..6c60792 100644
--- a/PR/src/lib/xml/search.c
+++ b/PR/src/lib/xml/search.c
@@ -103,6 +103,8 @@ void workTag(const tTag* t,void* pass) {
 	} else {
 		res.id.order=0;
 	}
+
+	res.palette.order=0; /* TODO: all palettes have an order of 0 */
 	
 	/* Copy id and palette id */	
 	keepIdAttributes(id,value,index);