Mercurial > mplayer.hg
changeset 36086:6e0e3d0a36c0
Don't strdup the URL.
It's already an allocated string, so simply assign it.
Additionally, without using gstrdup() we don't need to include string.h.
author | ib |
---|---|
date | Mon, 29 Apr 2013 11:45:55 +0000 |
parents | d3e8f4f71514 |
children | 3240406fbd4f |
files | gui/dialog/url.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/url.c Mon Apr 29 11:36:53 2013 +0000 +++ b/gui/dialog/url.c Mon Apr 29 11:45:55 2013 +0000 @@ -28,7 +28,6 @@ #include "gui/app/gui.h" #include "gui/ui/actions.h" #include "gui/util/list.h" -#include "gui/util/string.h" #include "help_mp.h" #include "stream/stream.h" @@ -63,7 +62,7 @@ if (str) { item = calloc(1, sizeof(urlItem)); - item->url = gstrdup(str); + item->url = str; listMgr(URLLIST_ITEM_ADD, item); uiSetFile(NULL, str, STREAMTYPE_STREAM);