summaryrefslogtreecommitdiff
path: root/objects
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2014-09-05 14:40:59 +0200
committerHans Breuer <hans@breuer.org>2014-09-05 14:40:59 +0200
commit7fa16a4b01ad5f5f37cb8930772c5f634e947317 (patch)
tree4d7be8da4db758b6d81b0926d8ca21916075841e /objects
parent0752d3219e9d36746939f5dc0e0d595119025a3c (diff)
downloaddia-7fa16a4b01ad5f5f37cb8930772c5f634e947317.tar.xz
[scan-build] Dead initialization (harmless)
Value stored to 'extra' during its initialization is never read File: /home/hb/from-git/dia/lib/prop_sdarray_widget.c Line: 524 -> removed variable and it's initialization Value stored to 'elem' during its initialization is never read File: /home/hb/from-git/dia/objects/Misc/n_gon.c Line: 191 -> use it a little below, rather than calculating the pointer once more Value stored to 'otype' during its initialization is never read File: /home/hb/from-git/dia/plug-ins/svg/svg-import.c Line: 893 -> remove intialization Value stored to 'renderer' during its initialization is never read File: /home/hb/from-git/dia/plug-ins/wpg/wpg.c Line: 772 -> move intialization into the code branch using the variable Value stored to 'hBrOld' during its initialization is never read File: /home/hb/from-git/dia/plug-ins/wmf/wmf.cpp Line: 1177 -> remove all the assignments to hBrOld and it's declaration Value stored to 'renderer' during its initialization is never read File: /home/hb/from-git/dia/plug-ins/wmf/wmf.cpp Line: 1064 -> move intialization into the code branch using the variable Value stored to 'wmf_renderer' during its initialization is never read File: /home/hb/from-git/dia/plug-ins/wmf/wmf.cpp Line: 1232 -> move deinitialization into *_finalize from end_render()
Diffstat (limited to 'objects')
-rw-r--r--objects/Misc/n_gon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/Misc/n_gon.c b/objects/Misc/n_gon.c
index b0165907..62cb37f5 100644
--- a/objects/Misc/n_gon.c
+++ b/objects/Misc/n_gon.c
@@ -203,7 +203,7 @@ _ngon_move_handle (Ngon *ng, Handle *handle,
real d1 = distance_point_point (to, &ng->center);
ng->ray_len *= (d1 / d0);
/* not sure if this is useful at all, but we must not do it with our center_handle */
- change = element_move_handle(&ng->element, handle->id, to, cp, reason, modifiers);
+ change = element_move_handle(elem, handle->id, to, cp, reason, modifiers);
}
_ngon_update_data(ng);