[rhythmbox] file-helpers: improve debug message when we don't find a plugin file



commit 043da9caa2112535d9c61c9c7405bfd2dd2ce292
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Jun 20 20:26:30 2020 +1000

    file-helpers: improve debug message when we don't find a plugin file
    
    Fixes: #1795

 lib/rb-file-helpers.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/rb-file-helpers.c b/lib/rb-file-helpers.c
index dbe48af30..bc8e49ddf 100644
--- a/lib/rb-file-helpers.c
+++ b/lib/rb-file-helpers.c
@@ -275,8 +275,12 @@ rb_find_plugin_data_file (GObject *object, const char *name)
                }
        }
 
-       rb_debug ("found '%s' when searching for file '%s' for plugin '%s'",
-                 ret, name, plugin_name);
+       if (ret == NULL) {
+               rb_debug ("didn't find file '%s' for plugin '%s'", name, plugin_name);
+       } else {
+               rb_debug ("found '%s' when searching for file '%s' for plugin '%s'",
+                         ret, name, plugin_name);
+       }
 
        /* ensure it's an absolute path */
        if (ret != NULL && ret[0] != '/') {


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