[svn-commits] file: trunk r58286 - /trunk/main/loader.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Mar 7 13:05:05 MST 2007


Author: file
Date: Wed Mar  7 14:05:05 2007
New Revision: 58286

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58286
Log:
Make the loader less noisy under valgrind.

Modified:
    trunk/main/loader.c

Modified: trunk/main/loader.c
URL: http://svn.digium.com/view/asterisk/trunk/main/loader.c?view=diff&rev=58286&r1=58285&r2=58286
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Wed Mar  7 14:05:05 2007
@@ -336,8 +336,8 @@
 
 static struct ast_module *load_dynamic_module(const char *resource_in, unsigned int global_symbols_only)
 {
-	char fn[256];
-	void *lib;
+	char fn[256] = "";
+	void *lib = NULL;
 	struct ast_module *mod;
 	char *resource = (char *) resource_in;
 	unsigned int wants_global;



More information about the svn-commits mailing list