Better not rely on the fact that the caller won't pass NULL. A NULL
profile would be lead to a wrong behaviour.
Change-Id: I281f0d2364af9f7b78268580dd73024b07bcba83
Reviewed-on: https://code.wireshark.org/review/25124
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
profile_exists(const gchar *profilename, gboolean global)
{
gchar *path = NULL, *global_path;
+ if (!profilename)
+ return FALSE;
if (global) {
global_path = get_global_profiles_dir();
path = g_strdup_printf ("%s%s%s", global_path,