Eet example: Add the correct variable in the hash.
authorGuilherme Iscaro <iscaro@profusion.mobi>
Sun, 9 Oct 2016 17:52:02 +0000 (14:52 -0300)
committerGuilherme Iscaro <iscaro@profusion.mobi>
Mon, 10 Oct 2016 17:20:48 +0000 (14:20 -0300)
src/examples/eet/eet-data-file_descriptor_01.c

index cbdcb59..5df727b 100644 (file)
@@ -409,7 +409,7 @@ main(int   argc,
                   if (!acc_)
                     {
                        acc_ = _my_account_new(argv[4]);
-                       eina_hash_direct_add(my_cache->accounts, acc_->name, acc);
+                       eina_hash_direct_add(my_cache->accounts, acc_->name, acc_);
                     }
                   else
                     fprintf(stderr, "ERROR: account '%s' already exists.\n",