diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 907ac3f1662f262f25405195d66e9d84c24be7c8..fcf015cdd37e385f179e7ce77d99f36ce24e7f6a 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -322,7 +322,7 @@ static int channel_spy(struct ast_channel *chan, struct chanspy_ds *spyee_chansp
 	char *name;
 	struct ast_frame *f;
 	struct ast_silence_generator *silgen = NULL;
-	struct ast_channel *spyee = NULL;
+	struct ast_channel *spyee = NULL, *spyee_bridge = NULL;
 	const char *spyer_name;
 
 	ast_channel_lock(chan);