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>
		
			
				
	
	
		
			18 lines
		
	
	
		
			314 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			314 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * This file is in the public domain.
 | 
						|
 * You may freely use, modify, distribute, and relicense it.
 | 
						|
 */
 | 
						|
 | 
						|
#include <stdlib.h>
 | 
						|
#include "svndump.h"
 | 
						|
 | 
						|
int main(int argc, char **argv)
 | 
						|
{
 | 
						|
	if (svndump_init(NULL))
 | 
						|
		return 1;
 | 
						|
	svndump_read((argc > 1) ? argv[1] : NULL);
 | 
						|
	svndump_deinit();
 | 
						|
	svndump_reset();
 | 
						|
	return 0;
 | 
						|
}
 |