diff options
author | Ted Gould <ted@gould.cx> | 2010-03-04 00:39:52 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-04 00:39:52 -0600 |
commit | 3c0e73c7ec818b6759a7805abe07909296791908 (patch) | |
tree | faf9190401e902e976db94b253ad23ad23f8cf99 /src/default-applications.c | |
parent | f1d31773ebf223650d4e26509403196e1a9bf53f (diff) | |
download | ayatana-indicator-messages-3c0e73c7ec818b6759a7805abe07909296791908.tar.gz ayatana-indicator-messages-3c0e73c7ec818b6759a7805abe07909296791908.tar.bz2 ayatana-indicator-messages-3c0e73c7ec818b6759a7805abe07909296791908.zip |
Keeping our desktop file paths safe.
Diffstat (limited to 'src/default-applications.c')
-rw-r--r-- | src/default-applications.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/default-applications.c b/src/default-applications.c index f1b11c0..5fd6612 100644 --- a/src/default-applications.c +++ b/src/default-applications.c @@ -37,7 +37,7 @@ struct default_db_t default_db[] = { }; static struct default_db_t * -get_default_helper (gchar * desktop_path) +get_default_helper (const gchar * desktop_path) { g_return_val_if_fail(desktop_path != NULL, NULL); gchar * basename = g_path_get_basename(desktop_path); @@ -60,7 +60,7 @@ get_default_helper (gchar * desktop_path) } const gchar * -get_default_name (gchar * desktop_path) +get_default_name (const gchar * desktop_path) { struct default_db_t * db = get_default_helper(desktop_path); @@ -70,7 +70,7 @@ get_default_name (gchar * desktop_path) } const gchar * -get_default_setup (gchar * desktop_path) +get_default_setup (const gchar * desktop_path) { struct default_db_t * db = get_default_helper(desktop_path); |