]> granicus.if.org Git - php/commitdiff
Fix posix build
authorNikita Popov <nikic@php.net>
Sun, 1 May 2016 11:07:01 +0000 (13:07 +0200)
committerNikita Popov <nikic@php.net>
Sun, 1 May 2016 11:07:01 +0000 (13:07 +0200)
ext/posix/posix.c

index 25cb26f372c1ea62cfdd79d532f503cbf1fb3004..771e31632526e20243748d73c150d8977fff1781 100644 (file)
@@ -987,7 +987,7 @@ int php_posix_group_to_array(struct group *g, zval *array_group) /* {{{ */
        array_init(&array_members);
 
        add_assoc_string(array_group, "name", g->gr_name);
-       if (array_group->gr_passwd) {
+       if (g->gr_passwd) {
                add_assoc_string(array_group, "passwd", g->gr_passwd);
        } else {
                add_assoc_null(array_group, "passwd");