[segyio] 347/376: Print error message for catr ranges argument error
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
jokva-guest pushed a commit to branch debian
in repository segyio.
commit 4ff5c9788b0af73df4a0c9c09a38627f6a35e0a0
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Wed Aug 16 13:42:23 2017 +0200
Print error message for catr ranges argument error
---
applications/segyio-catr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/applications/segyio-catr.c b/applications/segyio-catr.c
index afb94fb..25f6f3a 100644
--- a/applications/segyio-catr.c
+++ b/applications/segyio-catr.c
@@ -420,8 +420,8 @@ static struct options parse_options( int argc, char** argv ){
ret = sscanf(optarg," %d %d %d", &r->start,
&r->stop,
&r->step );
- if( ret && (r->start < 0 || r->stop < 0 || r->step < 0 ) ) {
- opts.errmsg = "POSITIVE";
+ if( ret && ( r->start < 0 || r->stop < 0 || r->step < 0 ) ) {
+ opts.errmsg = "range parameters must be positive";
return opts;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git
More information about the debian-science-commits
mailing list