[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 314d1ae 2/4: Corrected example for gal_list_st
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 314d1ae 2/4: Corrected example for gal_list_str_add in book |
Date: |
Sat, 28 Apr 2018 20:40:21 -0400 (EDT) |
branch: master
commit 314d1aedc7abebd98741fb15e002d2d520feca33
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Corrected example for gal_list_str_add in book
The example was missing an initialization of the `strlist' variable to
NULL. This is now corrected with this commit.
---
doc/gnuastro.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 07a6c2e..9f84bc4 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -21630,7 +21630,7 @@ remain. Here is one short/simple example of
initializing and adding
elements to a string list:
@example
-gal_list_str_t *strlist;
+gal_list_str_t *strlist=NULL;
gal_list_str_add(&strlist, "bottom of list.");
gal_list_str_add(&strlist, "second last element of list.");
@end example