diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 3cd10e3c89dbfc691ce6cd9813d30429036236ad..a4fcb0b4a16bd17bda6aace642b8476d73153f29 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -260,7 +260,7 @@ static int channel_spy(struct ast_channel *chan, struct ast_channel *spyee, int
 		       const struct ast_flags *flags) 
 {
 	struct chanspy_translation_helper csth;
-	int running, res, x = 0;
+	int running = 0, res, x = 0;
 	char inp[24] = {0};
 	char *name;
 	struct ast_frame *f;