diff options
author | David Robillard <d@drobilla.net> | 2008-12-13 05:23:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-13 05:23:25 +0000 |
commit | baa2354cf47b093117206fd1fc1bae45e46b03c3 (patch) | |
tree | da51033f5060badca53d52aa1bce4c2076cb9fcf /src/value.c | |
parent | c854c1f24f41844f0c95e8943738a820d8a283e5 (diff) | |
download | lilv-baa2354cf47b093117206fd1fc1bae45e46b03c3.tar.gz lilv-baa2354cf47b093117206fd1fc1bae45e46b03c3.tar.bz2 lilv-baa2354cf47b093117206fd1fc1bae45e46b03c3.zip |
Factor out "load plugin if necessary" concept.
Test plugin features: 78.1% coverage.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1859 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r-- | src/value.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/value.c b/src/value.c index 0e474fb..08c27e5 100644 --- a/src/value.c +++ b/src/value.c @@ -168,6 +168,9 @@ slv2_value_new_float(SLV2World world, float val) SLV2Value slv2_value_duplicate(SLV2Value val) { + if (val == NULL) + return val; + SLV2Value result = (SLV2Value)malloc(sizeof(struct _SLV2Value)); result->type = val->type; |