iliaa           Mon Apr 26 16:14:09 2004 EDT

  Modified files:              
    /php-src/ext/yp     yp.c 
  Log:
  Removed pointless check.
  
  
http://cvs.php.net/diff.php/php-src/ext/yp/yp.c?r1=1.43&r2=1.44&ty=u
Index: php-src/ext/yp/yp.c
diff -u php-src/ext/yp/yp.c:1.43 php-src/ext/yp/yp.c:1.44
--- php-src/ext/yp/yp.c:1.43    Thu Jan  8 03:17:51 2004
+++ php-src/ext/yp/yp.c Mon Apr 26 16:14:09 2004
@@ -16,7 +16,7 @@
    |          Fredrik Ohrn                                                |
    +----------------------------------------------------------------------+
  */
-/* $Id: yp.c,v 1.43 2004/01/08 08:17:51 andi Exp $ */
+/* $Id: yp.c,v 1.44 2004/04/26 20:14:09 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -297,13 +297,9 @@
        {
                if (inkeylen) {
                        char *key = emalloc(inkeylen+1);
-                       if(key) {
-                               strlcpy(key, inkey, inkeylen+1);
-                               add_assoc_stringl_ex((zval *) indata, key, inkeylen+1, 
inval, invallen, 1);
-                               efree(key);
-                       } else {
-                               php_error(E_WARNING, "Can't allocate %d bytes for key 
buffer in yp_cat()", inkeylen+1);
-                       }
+                       strlcpy(key, inkey, inkeylen+1);
+                       add_assoc_stringl_ex((zval *) indata, key, inkeylen+1, inval, 
invallen, 1);
+                       efree(key);
                }
 
                return 0;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to