Mercurial > audlegacy-plugins
changeset 1965:41d726acb915
Remove useless NULL assignations.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Oct 2007 19:17:46 +0300 |
parents | 375950feec51 |
children | f85a079573c3 |
files | src/xspf/xspf.c |
diffstat | 1 files changed, 3 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xspf/xspf.c Tue Oct 02 19:08:09 2007 +0300 +++ b/src/xspf/xspf.c Tue Oct 02 19:17:46 2007 +0300 @@ -251,7 +251,6 @@ playlist->attribute ^= PLAYLIST_STATIC; xmlFree(opt); - opt = NULL; } } } @@ -261,7 +260,6 @@ { xmlDocPtr doc; xmlNode *nptr, *nptr2; - gchar *tmp = NULL, *base = NULL; g_return_if_fail(filename != NULL); @@ -275,6 +273,8 @@ for (nptr = doc->children; nptr != NULL; nptr = nptr->next) { if (nptr->type == XML_ELEMENT_NODE && !xmlStrcmp(nptr->name, (xmlChar *)"playlist")) { + gchar *tmp, *base; + base = (gchar *)xmlNodeGetBase(doc, nptr); XSDEBUG("base @1 = %s\n", base); @@ -287,7 +287,6 @@ base = NULL; } g_free(tmp); - tmp = NULL; } XSDEBUG("base @2 = %s\n", base); @@ -418,7 +417,6 @@ } else { g_free(tmp); - tmp = NULL; } } @@ -493,7 +491,7 @@ XSDEBUG("absolute and local (obsolete)\n"); filename = g_filename_to_uri(tmp, NULL, NULL); } - g_free(tmp); tmp = NULL; + g_free(tmp); } /* obsolete */ if (!g_utf8_validate(filename, -1, NULL)) @@ -553,17 +551,13 @@ } g_free(filename); - filename = NULL; } PLAYLIST_UNLOCK(playlist); xmlSaveFormatFile(filename, doc, 1); xmlFreeDoc(doc); - doc = NULL; - xmlFree(base); - base = NULL; }