diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 324abf70ce8706a34a618dddc26f64aaf2033b9d..f1c7b26dad38ddd642af3f34b20d4d7bd6de3bcd 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -854,7 +854,7 @@ static int draw_text(AVFilterContext *ctx, AVFrame *frame,
     int x = 0, y = 0, i = 0, ret;
     int max_text_line_w = 0, len;
     int box_w, box_h;
-    char *text = s->text;
+    char *text;
     uint8_t *p;
     int y_min = 32000, y_max = -32000;
     int x_min = 32000, x_max = -32000;