--- a/MatchKeys.c
+++ b/MatchKeys.c
@@ -956,6 +956,7 @@
     int buflen=256;
 
     buffer = (char *) malloc(buflen);
+    strcpy(buffer,"");
 
 	for(i=0; i<ArrayList_Count(self->files); i++) {
 		char* filename = (char*) ArrayList_GetItem(self->files, i);