sparse / gcc-2.95 / -pedantic fixes

Not everybody has access to the latest and greatest compilers.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4595 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong
2006-08-07 20:49:20 +00:00
parent d54df97b06
commit ae97bcdfa2
3 changed files with 37 additions and 30 deletions

View File

@@ -58,9 +58,9 @@ char *getTagItemString(int type, char *string)
else
{
TagTrackerItem *item = malloc(sizeof(TagTrackerItem));
char *key = strdup(string);
item->count = 1;
item->visited = 0;
char * key= strdup(string);
InsertInTree(tagTrees[type], key, item);
return key;
}