1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00
Optimize check for empty strings


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1778067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2017-01-09 22:08:01 +00:00
parent db852eb4ce
commit cc97ce3e52
8 changed files with 24 additions and 24 deletions

View File

@@ -782,7 +782,7 @@ int lua_db_acquire(lua_State *L)
arguments = lua_tostring(L, 3);
lua_settop(L, 0);
if (strlen(arguments)) {
if (*arguments) {
rc = apr_dbd_open_ex(dbdhandle->driver, pool,
arguments, &dbdhandle->handle, &error);
if (rc == APR_SUCCESS) {