From e25503a9bc2098c686e5843927c98709ca673779 Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Tue, 26 Feb 2008 21:12:46 +0000 Subject: Declare variable at the beginning of the function to fix build with compilers that only understand C89. Bug #518890. svn path=/trunk/; revision=7991 --- lib/egg/egg-toolbar-editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index ff48ccba5..a7d3f8882 100644 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -174,10 +174,12 @@ void egg_toolbar_editor_set_model (EggToolbarEditor *t, EggToolbarsModel *model) { + EggToolbarEditorPrivate *priv; + g_return_if_fail (EGG_IS_TOOLBAR_EDITOR (t)); g_return_if_fail (model != NULL); - EggToolbarEditorPrivate *priv = t->priv; + priv = t->priv; if (priv->model) { -- cgit v1.2.3