[dia] [scan-build] Dead initialization
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Dead initialization
- Date: Tue, 29 Dec 2009 19:14:17 +0000 (UTC)
commit 96766d4dbc98ea11c55729a7b31ef731a2fd3120
Author: Hans Breuer <hans breuer org>
Date: Tue Dec 29 14:04:22 2009 +0100
[scan-build] Dead initialization
Value stored to 'sl' during its initialization is never read
plug-ins/pixbuf/pixbuf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pixbuf/pixbuf.c b/plug-ins/pixbuf/pixbuf.c
index d78b1dc..2facdd3 100644
--- a/plug-ins/pixbuf/pixbuf.c
+++ b/plug-ins/pixbuf/pixbuf.c
@@ -202,7 +202,7 @@ dia_plugin_init(PluginInfo *info)
return DIA_PLUGIN_INIT_ERROR;
else {
GSList* formats = gdk_pixbuf_get_formats ();
- GSList* sl = formats;
+ GSList* sl;
/* if we get this far we still may be running non-interactive. To avoid complains
* from color_convert() we are initializing ourselves ;)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]