Mercurial > mplayer.hg
changeset 35386:ef2d3b306d6e
Check for a non-empty filename.
Otherwise there will be a buffer overflow
if "." has to be copied as path.
author | ib |
---|---|
date | Sun, 25 Nov 2012 15:51:38 +0000 |
parents | 8b8534de8b83 |
children | 8c7b99d25d9a |
files | gui/util/list.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/util/list.c Sun Nov 25 15:13:19 2012 +0000 +++ b/gui/util/list.c Sun Nov 25 15:51:38 2012 +0000 @@ -293,7 +293,7 @@ char *path; plItem *item; - if (!what || (how != PLAYLIST_ITEM_APPEND && how != PLAYLIST_ITEM_INSERT)) + if (!what || !*what || (how != PLAYLIST_ITEM_APPEND && how != PLAYLIST_ITEM_INSERT)) return 0; file = mp_basename(what);