From b1a673c0a7ab8669e5c814979ab07b893efd9d50 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 18 May 2010 17:03:31 +0200 Subject: first proper error handling for loader --- tests/library/test_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c index fd07ed4..f6f78dd 100644 --- a/tests/library/test_loader.c +++ b/tests/library/test_loader.c @@ -26,7 +26,7 @@ int main( void ) { char errbuf[512]; library = wolf_library_load( "testlib.so", &error ); - if( library == NULL ) { + if( error != WOLF_OK ) { fprintf( stderr, "Error loading the library: %s (%d)\n", wolf_libary_errmsg( error, library, errbuf, 512 ), error ); return EXIT_FAILURE; -- cgit v1.2.3-54-g00ecf