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.
This commit is contained in:
Michael Natterer 2013-10-20 18:22:47 +02:00
parent 71bddaa23c
commit 6e3495ff69
1 changed files with 1 additions and 1 deletions

View File

@ -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] == '<')
{