Mercurial > mplayer.hg
diff gui/dialog/url.c @ 37083:ae4f30c4ef02
Determine size from variable declaration.
author | ib |
---|---|
date | Sat, 26 Apr 2014 16:32:53 +0000 |
parents | ad939f49bb28 |
children |
line wrap: on
line diff
--- a/gui/dialog/url.c Sat Apr 26 16:30:54 2014 +0000 +++ b/gui/dialog/url.c Sat Apr 26 16:32:53 2014 +0000 @@ -74,7 +74,7 @@ listMgr(PLAYLIST_DELETE, 0); add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND); - item = calloc(1, sizeof(urlItem)); + item = calloc(1, sizeof(*item)); if (item) { item->url = str;