test
git-svn-id: https://svn.musicpd.org/mpd/trunk@2652 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
		@@ -24,6 +24,8 @@ typedef struct tagTrackerItem {
 | 
				
			|||||||
char * getTagItemString(int type, char * string) {
 | 
					char * getTagItemString(int type, char * string) {
 | 
				
			||||||
	ListNode * node;
 | 
						ListNode * node;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(type == TAG_ITEM_TITLE) return strdup(string);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(tagLists[type] == NULL) {
 | 
						if(tagLists[type] == NULL) {
 | 
				
			||||||
		tagLists[type] = makeList(free, 1);
 | 
							tagLists[type] = makeList(free, 1);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -50,7 +52,13 @@ void removeTagItemString(int type, char * string) {
 | 
				
			|||||||
	if(tagLists[type] == NULL) return;
 | 
						if(tagLists[type] == NULL) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	node = findNodeInList(tagLists[type], string);
 | 
						node = findNodeInList(tagLists[type], string);
 | 
				
			||||||
	assert(node);
 | 
						/*assert(node);*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(!node) {
 | 
				
			||||||
 | 
							free(string);
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(node) {
 | 
						if(node) {
 | 
				
			||||||
		TagTrackerItem * item = node->data;
 | 
							TagTrackerItem * item = node->data;
 | 
				
			||||||
		item->count--;
 | 
							item->count--;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user