diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 8d3a2d3e1c4758c4c2aa3d1e092f737517e5873f..58894a1dc8613c404f6f0a3f01d2648ebfa20f2d 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -859,7 +859,7 @@ static struct ast_generator mohgen = {
 	.alloc    = moh_alloc,
 	.release  = moh_release,
 	.generate = moh_generate,
-	digit: moh_handle_digit
+	.digit    = moh_handle_digit,
 };
 
 static int moh_add_file(struct mohclass *class, const char *filepath)