[Top][All Lists]

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

[gnuastro-commits] master 922c9b1: Query: properly initialized rangestr

From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 922c9b1: Query: properly initialized rangestr
Date: Mon, 18 Jan 2021 13:57:56 -0500 (EST)

branch: master
commit 922c9b187bce98bedbb11352b6ee93d73641d49e
Author: Mohammad Akhlaghi <>
Commit: Mohammad Akhlaghi <>

    Query: properly initialized rangestr
    In the previous commit, I wasn't properly initializing 'rangestr', but was
    assuming that it is 'NULL' if not defined. This caused a problem when
    '--range' wasn't given.
    With this commit, 'rangestr' is now initialized to NULL.
 bin/query/tap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/query/tap.c b/bin/query/tap.c
index 9150945..49e29c5 100644
--- a/bin/query/tap.c
+++ b/bin/query/tap.c
@@ -225,8 +225,8 @@ tap_query_construct_data(struct queryparams *p)
   double *darray;
   gal_data_t *tmp;
   char *headstr=NULL, allcols[]="*";
-  char *datasetstr, *rangestr, *prevrange;
   char *querystr, *columns, *spatialstr=NULL;
+  char *datasetstr, *rangestr=NULL, *prevrange;
   /* If the dataset has special characters (like a slash) it needs to
      be quoted. */

reply via email to

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