Skip to content

Commit bc120f9

Browse files
committed
bugfix: fixed a compiliation error in the timer module when the DDEBUG macro is set to 1 or a C compiler without variadic macro support (like the Microsoft Visual C++ compiler) is used. thanks itpp16 for the patch in openresty#443.
1 parent 4cd7644 commit bc120f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ ngx_http_lua_log_timer_error(ngx_log_t *log, u_char *buf, size_t len)
475475

476476
c = log->data;
477477

478-
dd("ctx = %p", ctx);
478+
dd("ctx = %p", c);
479479

480480
p = ngx_snprintf(buf, len, ", context: ngx.timer");
481481
len -= p - buf;

0 commit comments

Comments
 (0)