projects
/
melted
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
mlt_factory.c: guard against accessing mlt_environment before it is ready
[melted]
/
src
/
framework
/
mlt_factory.c
diff --git
a/src/framework/mlt_factory.c
b/src/framework/mlt_factory.c
index
0b4508c
..
4a14dec
100644
(file)
--- a/
src/framework/mlt_factory.c
+++ b/
src/framework/mlt_factory.c
@@
-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.