[ooo-build-commit] .: soltools/javadep
Michael Meeks
mmeeks at kemper.freedesktop.org
Fri Oct 1 07:51:57 PDT 2010
soltools/javadep/javadep.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 0b4bcc5b83d01c1aed2564ad7be69ecd7a118a37
Author: Michael Meeks <michael.meeks at novell.com>
Date: Fri Oct 1 15:51:13 2010 +0100
calm down cppcheck patch
Thanks to: Justin Malcolm <malcolm.justin at gmail.com>
diff --git a/soltools/javadep/javadep.c b/soltools/javadep/javadep.c
index d6dc580..6d4e74b 100644
--- a/soltools/javadep/javadep.c
+++ b/soltools/javadep/javadep.c
@@ -603,9 +603,11 @@ xcalloc(size_t nmemb, size_t size)
void *
xrealloc(void *ptr, size_t size)
{
- ptr = realloc(ptr, size);
+ void *newptr = realloc(ptr, size);
- if ( !ptr )
+ if (newptr)
+ ptr = newptr;
+ else
err_quit("out of memory");
return ptr;
More information about the ooo-build-commit
mailing list