Permalink
Browse files

fixed debug output of NULL values

  • Loading branch information...
arut committed Jan 23, 2012
1 parent 32a950c commit 41bc535999042976ae3fe729c71cb36adbb3da0f
Showing with 1 addition and 1 deletion.
  1. +1 −1 ngx_http_mysql_module.c
View
@@ -344,7 +344,7 @@ ngx_int_t ngx_http_mysql_handler(ngx_http_request_t *r) {
value = row[n];
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "MySQL value returned '%s'", value);
+ "MySQL value returned '%s'", value ? value : "NULL");
len = value ? strlen(value) : 0;

0 comments on commit 41bc535

Please sign in to comment.