[libgda/LIBGDA_4.0] Correction reported by cppcheck
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] Correction reported by cppcheck
- Date: Sun, 28 Nov 2010 19:24:43 +0000 (UTC)
commit 50a10dd2bb5c74b665c268fc9f5756ab5303c894
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Oct 19 20:30:38 2010 +0200
Correction reported by cppcheck
libgda/binreloc/binreloc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgda/binreloc/binreloc.c b/libgda/binreloc/binreloc.c
index a27e5c2..55c31e7 100644
--- a/libgda/binreloc/binreloc.c
+++ b/libgda/binreloc/binreloc.c
@@ -244,7 +244,7 @@ _br_find_exe_for_symbol (const void *symbol, GbrInitError *error)
* then transform that into a pointer. */
if (address_string_len < len + 3) {
address_string_len = len + 3;
- address_string = (char *) g_try_realloc (address_string, address_string_len);
+ address_string = (char *) g_realloc (address_string, address_string_len);
}
memcpy (address_string, "0x", 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]