Index: formats/format_wav.c =================================================================== --- formats/format_wav.c (revision 87247) +++ formats/format_wav.c (working copy) @@ -491,7 +491,9 @@ static int load_module(void) { - return ast_format_register(&wav_f); + if (ast_format_register(&wav_f)) + return AST_MODULE_LOAD_FAILURE; + return AST_MODULE_LOAD_SUCCESS; } static int unload_module(void)