fix tbm_surface_internal_set_debug_data()
authorYoungJun Cho <yj44.cho@samsung.com>
Fri, 26 May 2017 03:15:36 +0000 (12:15 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 29 May 2017 05:23:06 +0000 (14:23 +0900)
This patch fixes tbm_surface_internal_set_debug_data() not to add again
after updating value.

Change-Id: Iba8527bfe9863ba08c86110b64578739840e4ea3
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
src/tbm_surface_internal.c

index 380c154..bba792f 100644 (file)
@@ -1393,6 +1393,8 @@ tbm_surface_internal_set_debug_data(tbm_surface_h surface, char *key, char *valu
                                                old_data->value = strdup(value);
                                        else
                                                old_data->value = NULL;
+
+                                       goto add_debug_key_list;
                                }
                        }
                }