[117633] trunk/base/src/registry2.0/entry.c
raimue at macports.org
raimue at macports.org
Thu Mar 6 03:29:59 PST 2014
Revision: 117633
https://trac.macports.org/changeset/117633
Author: raimue at macports.org
Date: 2014-03-06 03:29:59 -0800 (Thu, 06 Mar 2014)
Log Message:
-----------
registry2.0: Fix error reported by scan-build
Result of 'malloc' is converted to a pointer of type 'entry_list', which is incompatible with sizeof operand type 'entry_list *'
Modified Paths:
--------------
trunk/base/src/registry2.0/entry.c
Modified: trunk/base/src/registry2.0/entry.c
===================================================================
--- trunk/base/src/registry2.0/entry.c 2014-03-06 11:28:16 UTC (rev 117632)
+++ trunk/base/src/registry2.0/entry.c 2014-03-06 11:29:59 UTC (rev 117633)
@@ -153,7 +153,7 @@
list_handle = Tcl_GetAssocData(interp, "registry::deleted", NULL);
if (list_handle) {
entry_list* list = *list_handle;
- *list_handle = malloc(sizeof(entry_list*));
+ *list_handle = malloc(sizeof(entry_list));
if (*list_handle) {
(*list_handle)->entry = entry;
(*list_handle)->next = list;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140306/4659a4e6/attachment-0001.html>
More information about the macports-changes
mailing list