diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2006-10-30 21:36:50 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2006-10-30 21:36:50 +0000 |
commit | 52a5209e9a981b6e85e0a487def5ba5356dd87be (patch) | |
tree | b027b07995a133833c89feb5d80e82e30d9bfafc /libnautilus-extension/nautilus-menu.c | |
parent | 0bdaec81416d30df817b1ca912801fdebf634b0c (diff) | |
download | nautilus-52a5209e9a981b6e85e0a487def5ba5356dd87be.tar.gz |
Fix C99-style variable initialization for gcc 2.95. (#348665)
2006-10-30 Martin Wehner <martin.wehner@gmail.com>
* libnautilus-extension/nautilus-menu.c: (nautilus_menu_get_items):
* libnautilus-private/nautilus-metafile.c: (find_monitor_node):
Fix C99-style variable initialization for gcc 2.95. (#348665)
Patch from Jens Granseuer <jensgr@gmx.net>
Diffstat (limited to 'libnautilus-extension/nautilus-menu.c')
-rw-r--r-- | libnautilus-extension/nautilus-menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-extension/nautilus-menu.c b/libnautilus-extension/nautilus-menu.c index ad1c55c60..054baa322 100644 --- a/libnautilus-extension/nautilus-menu.c +++ b/libnautilus-extension/nautilus-menu.c @@ -45,9 +45,11 @@ nautilus_menu_append_item (NautilusMenu *this, NautilusMenuItem *item) GList * nautilus_menu_get_items (NautilusMenu *this) { + GList *item_list; + g_return_val_if_fail (this != NULL, NULL); - GList *item_list = g_list_copy (this->private->item_list); + item_list = g_list_copy (this->private->item_list); g_list_foreach (item_list, (GFunc)g_object_ref, NULL); return item_list; |