summaryrefslogtreecommitdiff
path: root/sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-22 23:59:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-22 23:59:31 +0100
commit1f00990debeffd0052c194989d0a02baac23eb96 (patch)
treeecc3dfafe935354404f7a0689a6ad809ebaba580 /sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch
parent02eb6576978c38afed5787f6f2dbab8353379d66 (diff)
gentoo auto-resync : 22:04:2024 - 23:59:31
Diffstat (limited to 'sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch')
-rw-r--r--sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch b/sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch
new file mode 100644
index 000000000000..eaae908db774
--- /dev/null
+++ b/sci-libs/stellarsolver/files/stellarsolver-2.5-compiler-warning.patch
@@ -0,0 +1,26 @@
+From 475193d28c0b33b14cecf9492a7c3cd06abcc9f5 Mon Sep 17 00:00:00 2001
+From: Tim Surber <me@timsurber.de>
+Date: Wed, 10 Apr 2024 23:36:49 +0200
+Subject: [PATCH] fix another compiler warning
+
+---
+ stellarsolver/astrometry/util/fitstable.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/stellarsolver/astrometry/util/fitstable.c b/stellarsolver/astrometry/util/fitstable.c
+index 10e1bc2..5885040 100644
+--- a/stellarsolver/astrometry/util/fitstable.c
++++ b/stellarsolver/astrometry/util/fitstable.c
+@@ -1227,7 +1227,11 @@ static fitstable_t* open_for_writing(const char* fn, const char* mode, FILE* fid
+ else {
+ tab->fid = fopen(fn, mode);
+ if (!tab->fid) {
+- SYSERROR("Couldn't open output file %s for writing", fn);
++ if (fn != NULL) {
++ SYSERROR("Couldn't open output file %s for writing", fn);
++ } else {
++ SYSERROR("Couldn't open output file because the filename is null");
++ }
+ goto bailout;
+ }
+ }