diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-11-19 18:46:06 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-24 14:51:42 -0800 |
commit | 5c28a8b054cb69a37638b0261fc370422c8fab58 (patch) | |
tree | 111356892e3a73a6439fb0506971d178096f6277 /contrib/svn-fe | |
parent | vcs-svn: Allow simple v3 dumps (no deltas yet) (diff) | |
download | tgif-5c28a8b054cb69a37638b0261fc370422c8fab58.tar.xz |
vcs-svn: Check for errors from open()
test-svn-fe segfaults when passed a bogus path. Simplify debugging by
exiting with a meaningful error message instead.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/svn-fe')
-rw-r--r-- | contrib/svn-fe/svn-fe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/svn-fe/svn-fe.c b/contrib/svn-fe/svn-fe.c index a2677b03e0..35db24f5ea 100644 --- a/contrib/svn-fe/svn-fe.c +++ b/contrib/svn-fe/svn-fe.c @@ -8,7 +8,8 @@ int main(int argc, char **argv) { - svndump_init(NULL); + if (svndump_init(NULL)) + return 1; svndump_read((argc > 1) ? argv[1] : NULL); svndump_deinit(); svndump_reset(); |