diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2000-10-17 17:31:37 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2000-10-17 17:31:37 +0000 |
commit | 13fa52b881b28df0cd9de252aef76d05ba32e637 (patch) | |
tree | 2552a7c6f3427453ca80cbe01c4e9f97e7f0e857 /ext/mcal/php_mcal.c | |
parent | e058cb064852bc4fe1c0a36167584c96dfcf5a9d (diff) | |
download | php-git-13fa52b881b28df0cd9de252aef76d05ba32e637.tar.gz |
spaces to tabs. do we have a standard on this?
Diffstat (limited to 'ext/mcal/php_mcal.c')
-rw-r--r-- | ext/mcal/php_mcal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mcal/php_mcal.c b/ext/mcal/php_mcal.c index 1346bdb5d4..4b9748589d 100644 --- a/ext/mcal/php_mcal.c +++ b/ext/mcal/php_mcal.c @@ -223,16 +223,16 @@ void php_mcal_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) convert_to_string_ex(calendar); convert_to_string_ex(user); convert_to_string_ex(passwd); - mcal_user = estrndup(Z_STRVAL_PP(user), Z_STRLEN_PP(user)); - mcal_password = estrndup(Z_STRVAL_PP(passwd), Z_STRLEN_PP(passwd)); + mcal_user = estrndup(Z_STRVAL_PP(user), Z_STRLEN_PP(user)); + mcal_password = estrndup(Z_STRVAL_PP(passwd), Z_STRLEN_PP(passwd)); if (myargc == 4) { convert_to_long_ex(options); flags = (*options)->value.lval; } mcal_stream = cal_open(NULL, (*calendar)->value.str.val, 0); - efree(mcal_user); - efree(mcal_password); - + efree(mcal_user); + efree(mcal_password); + if (!mcal_stream) { php_error(E_WARNING, "Couldn't open stream %s\n", (*calendar)->value.str.val); RETURN_FALSE; |