[dia/dia-0-97] [scan-build] Unitialized argument
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [dia/dia-0-97] [scan-build] Unitialized argument
- Date: Sat, 15 Mar 2014 17:09:43 +0000 (UTC)
commit 7639ee66aacf419b507b8198d7b195039c177980
Author: Hans Breuer <hans breuer org>
Date:   Sat Sep 26 18:24:26 2009 +0200
    [scan-build] Unitialized argument
    
    In case of malformed spline an uninitialized pointer was passed to
    g_free()
    
    http://clang-analyzer.llvm.org/scan-build
    (cherry picked from commit c308a61b42f4dccb820cdd6bafad2c97b126cd36)
 plug-ins/xfig/xfig-import.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/xfig/xfig-import.c b/plug-ins/xfig/xfig-import.c
index faa6ab6..7007c67 100644
--- a/plug-ins/xfig/xfig-import.c
+++ b/plug-ins/xfig/xfig-import.c
@@ -695,7 +695,7 @@ fig_read_spline(FILE *file) {
     int forward_arrow, backward_arrow;
     Arrow *forward_arrow_info = NULL, *backward_arrow_info = NULL;
     int npoints;
-    Point *points;
+    Point *points = NULL;
     GPtrArray *props = g_ptr_array_new();
     DiaObject *newobj = NULL;
     BezPoint *bezpoints;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]