diff --git a/res/res_monitor.c b/res/res_monitor.c
index c809b749b8c9132878fbd1fc7c9c7838281ce39b..6bd96fbca057a4a68e44cc9338c29b9c28aec6fb 100644
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -587,11 +587,7 @@ static int start_monitor_action(struct mansession *s, const struct message *m)
 
 	if (ast_strlen_zero(fname)) {
 		/* No filename base specified, default to channel name as per CLI */		
-		if (!(fname = ast_strdup(c->name))) {
-			astman_send_error(s, m, "Could not start monitoring channel");
-			ast_channel_unlock(c);
-			return 0;
-		}
+		fname = ast_strdupa(c->name);
 		/* Channels have the format technology/channel_name - have to replace that /  */
 		if ((d = strchr(fname, '/'))) 
 			*d = '-';