From 2a29950020af1cb3d1e0c81c6cf720d308d20eaf Mon Sep 17 00:00:00 2001 From: thewisenerd Date: Sun, 21 Oct 2018 20:17:49 +0530 Subject: input: ignore empty lines on drag-drop mime data do not outright err and quit the player for this --- input/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/event.c b/input/event.c index 76ddae279c..266e0294e2 100644 --- a/input/event.c +++ b/input/event.c @@ -64,7 +64,7 @@ int mp_event_drop_mime_data(struct input_ctx *ictx, const char *mime_type, while (data.len) { bstr line = bstr_getline(data, &data); line = bstr_strip_linebreaks(line); - if (bstr_startswith0(line, "#")) + if (bstr_startswith0(line, "#") || !line.start[0]) continue; char *s = bstrto0(tmp, line); MP_TARRAY_APPEND(tmp, files, num_files, s); -- cgit v1.2.3