Fix g_autoptr_cleanup_gstring_free( ) argument to avoid of confliting arument name 87/308187/1
authorJinWang An <jinwang.an@samsung.com>
Tue, 19 Mar 2024 07:59:41 +0000 (16:59 +0900)
committerJinWang An <jinwang.an@samsung.com>
Tue, 19 Mar 2024 07:59:41 +0000 (16:59 +0900)
Change-Id: Ibf9a84caab0d9e27a51ee331936e64dc4171aeca
Signed-off-by: JinWang An <jinwang.an@samsung.com>
glib/glib-autocleanups.h

index 6adf232..c6d1417 100644 (file)
@@ -31,10 +31,10 @@ g_autoptr_cleanup_generic_gfree (void *p)
 }
 
 static inline void
-g_autoptr_cleanup_gstring_free (GString *string)
+g_autoptr_cleanup_gstring_free (GString *__string__)
 {
-  if (string)
-    g_string_free (string, TRUE);
+  if (__string__)
+    g_string_free (__string__, TRUE);
 }
 
 /* Ignore deprecations in case we refer to a type which was added in a more