Make sure NULL is returned if we ran out of memory.
authordrepper <drepper>
Wed, 2 Apr 1997 14:33:07 +0000 (14:33 +0000)
committerdrepper <drepper>
Wed, 2 Apr 1997 14:33:07 +0000 (14:33 +0000)
nss/getXXbyYY.c

index 542072b..f81df05 100644 (file)
@@ -122,6 +122,9 @@ FUNCTION_NAME (ADD_PARAMS)
       buffer = new_buf;
     }
 
+  if (buffer == NULL)
+    result = NULL;
+
 #ifdef HANDLE_DIGITS_DOTS
 done:
 #endif