Skip to content

Commit

Permalink
fixed stupid augeas_save segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Padron committed Nov 13, 2009
1 parent a1750ba commit 5f9aa25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion augeas.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ PHP_FUNCTION(augeas_save) {

aug = (php_augeas *) zend_fetch_resource(&zaug TSRMLS_CC, -1, PHP_AUGEAS_RESOURCE_NAME, NULL, 1, le_augeas);

retval = aug_save(aug);
retval = aug_save(aug->augeas);

if (retval == 0) {
RETURN_TRUE;
Expand Down

0 comments on commit 5f9aa25

Please sign in to comment.