Skip to content

Commit

Permalink
fix xPath not being optional in libvirt_storagepool_get_xml_desc()
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbro committed Aug 17, 2012
1 parent 8bb78b3 commit f89fb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libvirt-php.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static zend_function_entry libvirt_functions[] = {
PHP_FE(libvirt_domain_get_screen_dimensions, NULL)
PHP_FE(libvirt_domain_send_keys, NULL)
PHP_FE(libvirt_domain_send_pointer_event, NULL)
PHP_FE(libvirt_domain_update_device, NULL)
PHP_FE(libvirt_domain_update_device, NULL)
/* Domain snapshot functions */
PHP_FE(libvirt_domain_has_current_snapshot, NULL)
PHP_FE(libvirt_domain_snapshot_create, NULL)
Expand Down Expand Up @@ -5871,7 +5871,7 @@ PHP_FUNCTION(libvirt_storagepool_get_xml_desc)
int xpath_len;
int retval = -1;

GET_STORAGEPOOL_FROM_ARGS("rs|l", &zpool, &xpath, &xpath_len, &flags);
GET_STORAGEPOOL_FROM_ARGS("r|s", &zpool, &xpath, &xpath_len, &flags);
if (xpath_len < 1)
xpath = NULL;

Expand Down

0 comments on commit f89fb51

Please sign in to comment.