This is an automated email from the git hooks/post-receive script. sebastic-guest pushed a commit to tag v1.3.2 in repository osmpbf.
commit 3c7756e965e4ab1b88ec87574cf63d059d50f521 Author: Jochen Topf <joc...@topf.org> Date: Tue Mar 11 11:24:18 2014 +0100 Check if input file could be opened. --- tools/osmpbf-outline.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/osmpbf-outline.cpp b/tools/osmpbf-outline.cpp index e4f20e6..23ffc71 100644 --- a/tools/osmpbf-outline.cpp +++ b/tools/osmpbf-outline.cpp @@ -126,6 +126,10 @@ int main(int argc, char *argv[]) { // open specified file FILE *fp = fopen(argv[optind], "rb"); + if (!fp) { + err("can't open file '%s'", argv[optind]); + } + // read while the file has not reached its end while (!feof(fp)) { // storage of size, used multiple times -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmpbf.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel