[vlc-devel] commit: variables: Set void_ops by default. (Derk-Jan Hartman )

git version control git at videolan.org
Sat Sep 20 00:08:44 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Sat Sep 20 00:11:09 2008 +0200| [cc84f8969ea34b84b8fdcbb3853abf10017fc4b3] | committer: Derk-Jan Hartman 

variables: Set void_ops by default.

This fixes [45e63d598008b1ec920bf629388efd08b95c2747]

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc84f8969ea34b84b8fdcbb3853abf10017fc4b3
---

 src/misc/variables.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index b51c65a..900db9f 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -135,6 +135,7 @@ static void FreeList( vlc_value_t *p_val )
 }
 
 static const struct variable_ops_t
+void_ops   = { NULL,       DupDummy,  FreeDummy,  },
 addr_ops   = { CmpAddress, DupDummy,  FreeDummy,  },
 bool_ops   = { CmpBool,    DupDummy,  FreeDummy,  },
 float_ops  = { CmpFloat,   DupDummy,  FreeDummy,  },
@@ -276,6 +277,9 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
             p_var->ops = &list_ops;
             p_var->val.p_list = &dummy_null_list;
             break;
+        default:
+            p_var->ops = &void_ops;
+            break;
     }
 
     /* Duplicate the default data we stored. */




More information about the vlc-devel mailing list