Welcome! Log In Create A New Profile

Advanced

[PATCH 1 of 1] fix ngx_http_mysql_test_create_loc_conf return value on error

Markus Linnala
August 17, 2014 03:06PM
# HG changeset patch
# User Markus Linnala <Markus.Linnala@cybercom.com>
# Date 1408301978 -10800
# Sun Aug 17 21:59:38 2014 +0300
# Node ID 0719145489f842b14765506f8856798c2203e3cc
# Parent 5524fc592881550bc5ed108993af148ebd09fa22
fix ngx_http_mysql_test_create_loc_conf return value on error

diff -r 5524fc592881 -r 0719145489f8 src/mysql/ngx_http_mysql_test.c
--- a/src/mysql/ngx_http_mysql_test.c Sun Aug 17 21:01:53 2014 +0300
+++ b/src/mysql/ngx_http_mysql_test.c Sun Aug 17 21:59:38 2014 +0300
@@ -163,7 +163,7 @@

conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_mysql_test_conf_t));
if (conf == NULL) {
- return NGX_CONF_ERROR;
+ return NULL;
}

return conf;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH 0 of 1] Problem with create_*_conf return values

Markus Linnala 583 August 17, 2014 03:06PM

[PATCH 1 of 1] fix ngx_http_mysql_test_create_loc_conf return value on error

Markus Linnala 258 August 17, 2014 03:06PM

Re: [PATCH 0 of 1] Problem with create_*_conf return values

Maxim Dounin 259 August 17, 2014 03:22PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready