[gimp/wip/animation: 134/197] plug-ins: properly initialize a pointer to NULL.



commit d19bc7016a8e9d7670ed1bf9d3b7a5d3b62db55d
Author: Jehan <jehan girinstud io>
Date:   Sun May 21 16:51:20 2017 +0200

    plug-ins: properly initialize a pointer to NULL.
    
    This fixes a possible segmentation fault.

 .../animation-play/widgets/animation-layer-view.c  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-layer-view.c 
b/plug-ins/animation-play/widgets/animation-layer-view.c
index af116c5..4481ee6 100644
--- a/plug-ins/animation-play/widgets/animation-layer-view.c
+++ b/plug-ins/animation-play/widgets/animation-layer-view.c
@@ -413,7 +413,7 @@ animation_layer_view_get_row (AnimationLayerView *view,
 
   do
     {
-      GtkTreePath *path;
+      GtkTreePath *path = NULL;
       GValue       value = { 0, };
 
       gtk_tree_model_get_value (model, &iter,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]