]> granicus.if.org Git - php/commitdiff
p is set, but never used.
authorSascha Schumann <sas@php.net>
Sat, 4 May 2002 16:54:13 +0000 (16:54 +0000)
committerSascha Schumann <sas@php.net>
Sat, 4 May 2002 16:54:13 +0000 (16:54 +0000)
ext/posix/posix.c

index cf7461546b90f202f3329a37747146a5b6168198..4ea521997e601352562db8650b6f5b4217483b0d 100644 (file)
@@ -563,12 +563,11 @@ PHP_FUNCTION(posix_times)
 PHP_FUNCTION(posix_ctermid)
 {
        char  buffer[L_ctermid];
-       char *p;
        
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE)
                return;
 
-       if (NULL == (p = ctermid(buffer))) {
+       if (NULL == ctermid(buffer)) {
                /* Found no documentation how the defined behaviour is when this
                 * function fails
                 */