From ae97bcdfa2fcf2ead5c712596f97e0d40c7b32fb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Aug 2006 20:49:20 +0000 Subject: 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 --- src/tagTracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tagTracker.c') diff --git a/src/tagTracker.c b/src/tagTracker.c index a0ab57d6f..6007c396e 100644 --- a/src/tagTracker.c +++ b/src/tagTracker.c @@ -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; } -- cgit v1.2.3