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



commit 07092eb8e9adcfe2493d7fd9583507eafa873563
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]