Fix crash bug #14232

This commit is contained in:
Yasuo Ohgaki 2002-03-06 07:49:49 +00:00
parent da977f8251
commit 0010418ea7

View file

@ -136,8 +136,10 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
ps_files_close(data);
if (!ps_files_valid_key(key) ||
!ps_files_path_create(buf, sizeof(buf), data, key))
!ps_files_path_create(buf, sizeof(buf), data, key)) {
data->fd = -1;
return;
}
data->lastkey = estrdup(key);