[gimp] app: treat an empty ("" not NULL) plug-in proc_install->menu_path as NULL



commit 6e3495ff6969c2c35458292c7ff76fa72913b851
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 20 18:22:47 2013 +0200

    app: treat an empty ("" not NULL) plug-in proc_install->menu_path as NULL
    
    gimp_plug_in_handle_proc_install(): don't set the new procedure's menu
    path nor its menu label if proc_install->menu_path is "", so we don't
    run into action and menu creating confusion later. Do it here and not
    later so the "" string never enters the system.

 app/plug-in/gimpplugin-message.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/plug-in/gimpplugin-message.c b/app/plug-in/gimpplugin-message.c
index 2e592db..e3d361f 100644
--- a/app/plug-in/gimpplugin-message.c
+++ b/app/plug-in/gimpplugin-message.c
@@ -866,7 +866,7 @@ gimp_plug_in_handle_proc_install (GimpPlugIn    *plug_in,
 
   /*  Sanity check menu path  */
 
-  if (proc_install->menu_path)
+  if (proc_install->menu_path && strlen (proc_install->menu_path))
     {
       if (proc_install->menu_path[0] == '<')
         {


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