diff options
author | wm4 <wm4@nowhere> | 2013-10-25 15:34:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-25 18:39:15 +0200 |
commit | 28d3fe1d6d5b2731fe69d928d25715efc1e0176d (patch) | |
tree | 1ae4ec5dee3050a1cc3834f89b05089cd11af444 /mpvcore/m_config.c | |
parent | 75e1c6f295ff9c0631371b6565c1d20e8f2da8b6 (diff) | |
download | mpv-28d3fe1d6d5b2731fe69d928d25715efc1e0176d.tar.bz2 mpv-28d3fe1d6d5b2731fe69d928d25715efc1e0176d.tar.xz |
m_config: remove unused fields
We don't need that anymore, because the old way to get default values
by recreating the m_config is gone.
Diffstat (limited to 'mpvcore/m_config.c')
-rw-r--r-- | mpvcore/m_config.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mpvcore/m_config.c b/mpvcore/m_config.c index 66e5da25b7..e576ddcd5e 100644 --- a/mpvcore/m_config.c +++ b/mpvcore/m_config.c @@ -193,11 +193,7 @@ struct m_config *m_config_new(void *talloc_parent, size_t size, { struct m_config *config = talloc(talloc_parent, struct m_config); talloc_set_destructor(config, config_destroy); - *config = (struct m_config) { - .optstruct_size = size, - .optstruct_defaults = defaults, - .options = options, - }; + *config = (struct m_config) {0}; // size==0 means a dummy object is created if (size) { config->optstruct = talloc_zero_size(config, size); |