Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit ba649eb

Browse files
committed
Merged pull request #824
2 parents 9603a57 + 5e0a87f commit ba649eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ static void mongo_db_list_collections_legacy(zval *this_ptr, zval *options, int
872872
name++;
873873

874874
/* "foo." was allowed in earlier versions */
875-
if (name == '\0') {
875+
if (*name == '\0') {
876876
php_mongocursor_advance(cursor TSRMLS_CC);
877877
continue;
878878
}

0 commit comments

Comments
 (0)