[GRASS-git] [OSGeo/grass] 98e3fe: r.out.png: reset file pointer to NULL after fclose...
ymdatta
noreply at github.com
Sat Sep 7 11:04:11 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 98e3fe1f4119329fb9533e7623ea1533ccc009af
https://github.com/OSGeo/grass/commit/98e3fe1f4119329fb9533e7623ea1533ccc009af
Author: ymdatta <ymdatta.work at gmail.com>
Date: 2024-09-07 (Sat, 07 Sep 2024)
Changed paths:
M raster/r.out.png/main.c
Log Message:
-----------
r.out.png: reset file pointer to NULL after fclose (#4220)
This patch continues the work from 917ba58. It's a good
practice to immediately reset the file pointer once we
do fclose on it, as it prevents using/closing descriptor
allocated to another file in the future execution paths.
Signed-off-by: Mohan Yelugoti <ymdatta.work at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list