diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-01-21 01:01:12 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-01-21 01:01:12 +0000 |
commit | 3ed743146db1c7ccc7049c89c2b425bbfee041a5 (patch) | |
tree | 6d6e82106385dfc3bb45cd9391ddfc55f528bee0 | |
parent | 2fd5e6e4ab55a6397edb6fe768f334d74c81bca5 (diff) | |
download | eet-3ed743146db1c7ccc7049c89c2b425bbfee041a5.tar.gz |
Fix invalid pointer ref
Patch by: ChunEon Park <chuneon.park@samsung.com>
SVN revision: 56249
-rw-r--r-- | src/lib/eet_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c index d67c5e8..4c694e5 100644 --- a/src/lib/eet_lib.c +++ b/src/lib/eet_lib.c @@ -1725,11 +1725,12 @@ EAPI Eet_Error eet_identity_set(Eet_File *ef, Eet_Key *key) { - Eet_Key *tmp = ef->key; + Eet_Key *tmp; if (!ef) return EET_ERROR_BAD_OBJECT; + tmp = ef->key; ef->key = key; eet_identity_ref(ef->key); eet_identity_unref(tmp); |