[gnome-builder] ide-config: Replace pointer comparison with g_strcmp0



commit 9264d433c8d63981261bea5f2c3acda9b7dd932e
Author: James Westman <james jwestman net>
Date:   Tue Jul 27 13:21:27 2021 -0500

    ide-config: Replace pointer comparison with g_strcmp0

 src/libide/foundry/ide-config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/foundry/ide-config.c b/src/libide/foundry/ide-config.c
index 4ffacd21e..7284bd498 100644
--- a/src/libide/foundry/ide-config.c
+++ b/src/libide/foundry/ide-config.c
@@ -1710,7 +1710,7 @@ ide_config_set_prepend_path (IdeConfig   *self,
 
   g_return_if_fail (IDE_IS_CONFIG (self));
 
-  if (priv->prepend_path != prepend_path)
+  if (g_strcmp0 (priv->prepend_path, prepend_path) != 0)
     {
       g_free (priv->prepend_path);
       priv->prepend_path = g_strdup (prepend_path);
@@ -1736,7 +1736,7 @@ ide_config_set_append_path (IdeConfig   *self,
 
   g_return_if_fail (IDE_IS_CONFIG (self));
 
-  if (priv->append_path != append_path)
+  if (g_strcmp0 (priv->append_path, append_path) != 0)
     {
       g_free (priv->append_path);
       priv->append_path = g_strdup (append_path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]