star-hitran

Load line-by-line data from the HITRAN database
git clone git://git.meso-star.fr/star-hitran.git
Log | Files | Refs | README | LICENSE

commit 9729474133f1b72bcb200c0eeb1cefe586cdf5f7
parent ead5ac426bc40063f1e31fef95cd81c3fb90610b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 12 Feb 2026 12:19:24 +0100

Improve assertion on stream_init input arguments

The "mode" string was not verified.

Diffstat:
Msrc/shtr_line_list.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shtr_line_list.c b/src/shtr_line_list.c @@ -95,7 +95,7 @@ stream_init res_T res = RES_OK; ASSERT(shtr && caller && stream); - ASSERT(fp || name); + ASSERT(fp || (name && mode)); *stream = STREAM_NULL;