Permalink
Browse files

fix xPath not being optional in libvirt_storagepool_get_xml_desc()

  • Loading branch information...
1 parent 8bb78b3 commit f89fb516ad7d75d113e26381f1bc8d48f5811158 @slowbro slowbro committed Aug 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/libvirt-php.c
View
@@ -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)
@@ -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;

0 comments on commit f89fb51

Please sign in to comment.