gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 767e1c2: Table: initialized variable to avoid


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 767e1c2: Table: initialized variable to avoid compiler warning
Date: Thu, 19 Sep 2019 14:39:57 -0400 (EDT)

branch: master
commit 767e1c22abf5d6f07a05d38d1d04b5311bb97d1c
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Table: initialized variable to avoid compiler warning
    
    The `selecttype' pointer in `ui_check_select_sort_before' is now
    initialized to avoid compiler warnings and possible crashes.
---
 bin/table/ui.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/table/ui.c b/bin/table/ui.c
index db30ae9..d12cc4b 100644
--- a/bin/table/ui.c
+++ b/bin/table/ui.c
@@ -681,8 +681,8 @@ ui_check_select_sort_before(struct tableparams *p, 
gal_list_str_t *lines,
   gal_list_sizet_t *tmp, *indexll;
   gal_list_str_t *stmp, *add=NULL;
   int tableformat, selecthasname=0;
-  size_t *selectind=NULL, *selecttype;
-  size_t *selectindout=NULL, *selecttypeout;
+  size_t *selectind=NULL, *selecttype=NULL;
+  size_t *selectindout=NULL, *selecttypeout=NULL;
   size_t i, j, k, *s, *sf, allncols, numcols, numrows;
 
   /* Important note: these have to be in the same order as the `enum



reply via email to

[Prev in Thread] Current Thread [Next in Thread]