]> granicus.if.org Git - php/commitdiff
- Dropped unnecessary var
authorFelipe Pena <felipe@php.net>
Fri, 12 Jun 2009 14:03:35 +0000 (14:03 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 12 Jun 2009 14:03:35 +0000 (14:03 +0000)
ext/exif/exif.c

index ed68af067f55a09f5dcc531c50e94b8a5b7fcdee..181ec2a43b0bb8117269ebfbae5426906c59ac51 100644 (file)
@@ -3913,17 +3913,17 @@ PHP_FUNCTION(exif_read_data)
        int p_name_len, p_sections_needed_len = 0;
        zend_bool sub_arrays=0, read_thumbnail=0, read_all=0;
 
-       int i, ac = ZEND_NUM_ARGS(), ret, sections_needed=0;
+       int i, ret, sections_needed=0;
        image_info_type ImageInfo;
        char tmp[64], *sections_str, *s;
 
-       if (zend_parse_parameters(ac TSRMLS_CC, "s|sbb", &p_name, &p_name_len, &p_sections_needed, &p_sections_needed_len, &sub_arrays, &read_thumbnail) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|sbb", &p_name, &p_name_len, &p_sections_needed, &p_sections_needed_len, &sub_arrays, &read_thumbnail) == FAILURE) {
                return;
        }
 
        memset(&ImageInfo, 0, sizeof(ImageInfo));
 
-       if (ac >= 2) {
+       if (p_sections_needed) {
                spprintf(&sections_str, 0, ",%s,", p_sections_needed);
                /* sections_str DOES start with , and SPACES are NOT allowed in names */
                s = sections_str;