htmie

Optical properties of water droplets
git clone git://git.meso-star.fr/htmie.git
Log | Files | Refs | README | LICENSE

commit e99a428466f1ae7a41f453486f2b8e6cefcbc3f2
parent ef439b7b5b1ea104bcc13bcdb77de53c09398b38
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 11 Oct 2023 09:39:36 +0200

Fix test_htmie_load

It crashed when the netCDF path has no directory directive.

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

diff --git a/src/test_htmie_load.c b/src/test_htmie_load.c @@ -299,7 +299,7 @@ main(int argc, char** argv) CHK(htmie_load(htmie, filename) == RES_OK); p = strrchr(filename, '/'); - if(p) base = p+1; + base = p ? p+1 : filename; p = strrchr(base, '.'); if(p) *p = '\0';