summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-09-08 05:52:00 +0000
committerDmitry Stogov <dmitry@php.net>2006-09-08 05:52:00 +0000
commitb0c41509676fbf2a694573813bae5ac104def68d (patch)
tree8feb51454717e8c6e36c197731fb8689932431b4 /ext/com_dotnet
parent7e563e9215dfaed8fd2b2af35bef8734cbaebd30 (diff)
downloadphp-git-b0c41509676fbf2a694573813bae5ac104def68d.tar.gz
Prevent opening of empty filename ""
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_extension.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c
index 3c73ec594e..56526805ac 100644
--- a/ext/com_dotnet/com_extension.c
+++ b/ext/com_dotnet/com_extension.c
@@ -115,7 +115,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate)
char *strtok_buf = NULL;
int cached;
- if (!new_value || (typelib_file = VCWD_FOPEN(new_value, "r"))==NULL) {
+ if (!new_value || !new_value[0] || (typelib_file = VCWD_FOPEN(new_value, "r"))==NULL) {
return FAILURE;
}