summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-01 00:52:07 +0100
committerwm4 <wm4@nowhere>2012-11-01 02:12:18 +0100
commit1809cbcc90db65826f5fc8a84ae4804382937828 (patch)
tree0cc5242c40b230f48df2178e49d630b700a70942 /input
parentcb77400006e13b32ce69a1add4e8a1da8536fbf4 (diff)
downloadmpv-1809cbcc90db65826f5fc8a84ae4804382937828.tar.bz2
mpv-1809cbcc90db65826f5fc8a84ae4804382937828.tar.xz
input: minor simplification
Diffstat (limited to 'input')
-rw-r--r--input/input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c
index c559e2edfa..dfd3f81fb9 100644
--- a/input/input.c
+++ b/input/input.c
@@ -1721,13 +1721,12 @@ static int parse_config(struct input_ctx *ictx, bool builtin, bstr data,
static int parse_config_file(struct input_ctx *ictx, char *file)
{
- struct bstr res = {0};
stream_t *s = open_stream(file, NULL, NULL);
if (!s) {
mp_msg(MSGT_INPUT, MSGL_V, "Can't open input config file %s.\n", file);
return 0;
}
- res = stream_read_complete(s, NULL, 1000000, 0);
+ bstr res = stream_read_complete(s, NULL, 1000000, 0);
free_stream(s);
mp_msg(MSGT_INPUT, MSGL_V, "Parsing input config file %s\n", file);
int n_binds = parse_config(ictx, false, res, file);