Merge my applicationmap_fixup branch to address the issues described in this
[asterisk/asterisk.git] / res / res_convert.c
index 5530758..c62aba4 100644 (file)
  *
  */ 
 
+#include "asterisk.h"
+
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include "asterisk.h"
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
 #include "asterisk/channel.h"
 #include "asterisk/logger.h"
 #include "asterisk/module.h"
@@ -72,8 +73,8 @@ static int cli_audio_convert(int fd, int argc, char *argv[])
                goto fail_out;  
        }
 
-       if (!(file_in = ast_strdupa(argv[1])) || !(file_out = ast_strdupa(argv[2])))
-               goto fail_out;
+       file_in = ast_strdupa(argv[1]);
+       file_out = ast_strdupa(argv[2]);
 
        if (split_ext(file_in, &name_in, &ext_in)) {
                ast_cli(fd, "'%s' is an invalid filename!\n", argv[1]);