]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_factory.c
mlt_factory.c: guard against accessing mlt_environment before it is ready
[mlt] / src / framework / mlt_factory.c
index 0b4508c505b2a8615fb1333cb989dd5edd48213f..4a14decc98ef02ed28e9335b81a629522d68ca7a 100644 (file)
@@ -139,7 +139,10 @@ const char *mlt_factory_prefix( )
 
 char *mlt_environment( const char *name )
 {
-       return mlt_properties_get( global_properties, name );
+       if ( global_properties )
+               return mlt_properties_get( global_properties, name );
+       else
+               return NULL;
 }
 
 /** Set a value in the environment.