From: raster Date: Sun, 27 Feb 2011 09:16:33 +0000 (+0000) Subject: and just use eina_hash_set X-Git-Tag: REL_F_I9200_20110722_1~8^2~50^2~702 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11246bfbf798ab13cd6cf0b07d290ba73ea2cb0f;p=framework%2Fuifw%2Felementary.git and just use eina_hash_set git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@57355 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c index 32bf5ca..b4750b9 100644 --- a/src/lib/elm_map.c +++ b/src/lib/elm_map.c @@ -3569,8 +3569,7 @@ elm_map_user_agent_set(Evas_Object *obj, const char *user_agent) else eina_stringshare_replace(&wd->user_agent, user_agent); if (!wd->ua) wd->ua = eina_hash_string_small_new(NULL); - if (!eina_hash_find(wd->ua, "User-Agent")) eina_hash_add(wd->ua, "User-Agent", user_agent); - else eina_hash_set(wd->ua, "User-Agent", user_agent); + eina_hash_set(wd->ua, "User-Agent", wd->user_agent); } /**