[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 7f6afeb: Minor compiler warning in tiff librar
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 7f6afeb: Minor compiler warning in tiff library fixed |
Date: |
Thu, 12 Apr 2018 20:54:15 -0400 (EDT) |
branch: master
commit 7f6afeb2c1331bc1b8539ea073c62f7f6bdf3edb
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
Minor compiler warning in tiff library fixed
When checking the build with Debian's `pdebuild', I noticed a warning about
a possibly un-initialized `nrow' in Gnuastro's TIFF library. It is thus now
initialized to 0.
The release checklist also has some minor corrections.
---
doc/release-checklist.txt | 5 +++--
lib/tiff.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/doc/release-checklist.txt b/doc/release-checklist.txt
index 67b6354..dd926a8 100644
--- a/doc/release-checklist.txt
+++ b/doc/release-checklist.txt
@@ -250,7 +250,8 @@ Steps necessary to Package Gnuastro for Debian.
changed to an `underscore' and an `orig' is added), then go into the
cloned directory.
- $ ln -s gnuastro-$ver-XXXX.tar.gz gnuastro_$ver.orig.tar.gz
+ $ mv gnuastro-$ver-XXXX.tar.gz gnuastro_$ver.orig.tar.gz
+ $ mv gnuastro-$ver-XXXX..tar.gz.sig gnuastro_$ver.orig.tar.gz.asc
$ cd gnuastro
@@ -272,7 +273,7 @@ Steps necessary to Package Gnuastro for Debian.
$ git commit -m "Upstream Gnuastro $ver"
$ git tag upstream/$ver
$ pristine-tar commit ../gnuastro_$ver.orig.tar.gz \
- -s ../gnuastro-$ver.tar.gz.sig
+ -s ../gnuastro_$ver.orig.tar.gz.asc
- We are done with the `upstream' and `pristine-tar' branches and can
diff --git a/lib/tiff.c b/lib/tiff.c
index 450e55f..05526d3 100644
--- a/lib/tiff.c
+++ b/lib/tiff.c
@@ -267,7 +267,7 @@ tiff_read_contig_strip_data(TIFF *tif, char *filename,
size_t dir,
size_t ostart=0;
unsigned char *buf;
uint32_t row, rowsperstrip = (uint32_t)-1;
- size_t nrow, scanline=TIFFScanlineSize(tif);
+ size_t nrow=0, scanline=TIFFScanlineSize(tif);
uint32 h=out->ndim==2?out->dsize[0]:out->dsize[1];
/* Allocate the buffer. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 7f6afeb: Minor compiler warning in tiff library fixed,
Mohammad Akhlaghi <=