parent
8ab67084a0
commit
89d7aca73a
@ -1428,7 +1428,7 @@ static int PH7_builtin_dirname(ph7_context *pCtx, int nArg, ph7_value **apArg) {
|
|||||||
/* Point to the target path */
|
/* Point to the target path */
|
||||||
zPath = ph7_value_to_string(apArg[0], &iLen);
|
zPath = ph7_value_to_string(apArg[0], &iLen);
|
||||||
if(iLen < 1) {
|
if(iLen < 1) {
|
||||||
/* Reuturn "." */
|
/* Return "." */
|
||||||
ph7_result_string(pCtx, ".", sizeof(char));
|
ph7_result_string(pCtx, ".", sizeof(char));
|
||||||
return PH7_OK;
|
return PH7_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user