diff options
author | Jens Granseuer <jensg@src.gnome.org> | 2008-02-27 05:12:46 +0800 |
---|---|---|
committer | Jens Granseuer <jensg@src.gnome.org> | 2008-02-27 05:12:46 +0800 |
commit | e25503a9bc2098c686e5843927c98709ca673779 (patch) | |
tree | 7fff8de52d128c599d7bb012d8596416dbb7cb48 | |
parent | ebe63f46bd51ea845bae5bcbc6bb7fd3de04f65d (diff) | |
download | gsoc2013-epiphany-e25503a9bc2098c686e5843927c98709ca673779.tar.gz gsoc2013-epiphany-e25503a9bc2098c686e5843927c98709ca673779.tar.zst gsoc2013-epiphany-e25503a9bc2098c686e5843927c98709ca673779.zip |
Declare variable at the beginning of the function to fix build with
compilers that only understand C89. Bug #518890.
svn path=/trunk/; revision=7991
-rw-r--r-- | lib/egg/egg-toolbar-editor.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |