summaryrefslogtreecommitdiff
path: root/vcs-svn/svndump.h
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-11-20 00:46:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-24 22:51:42 (GMT)
commit5c28a8b054cb69a37638b0261fc370422c8fab58 (patch)
tree111356892e3a73a6439fb0506971d178096f6277 /vcs-svn/svndump.h
parent1f05d07c456e23c0827efbbb3e738afc9f3152e7 (diff)
downloadgit-5c28a8b054cb69a37638b0261fc370422c8fab58.zip
git-5c28a8b054cb69a37638b0261fc370422c8fab58.tar.gz
git-5c28a8b054cb69a37638b0261fc370422c8fab58.tar.bz2
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 'vcs-svn/svndump.h')
-rw-r--r--vcs-svn/svndump.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcs-svn/svndump.h b/vcs-svn/svndump.h
index 93c412f..df9ceb0 100644
--- a/vcs-svn/svndump.h
+++ b/vcs-svn/svndump.h
@@ -1,7 +1,7 @@
#ifndef SVNDUMP_H_
#define SVNDUMP_H_
-void svndump_init(const char *filename);
+int svndump_init(const char *filename);
void svndump_read(const char *url);
void svndump_deinit(void);
void svndump_reset(void);