On Thu, 10 Oct 2002, Rohit wrote:
> --
> struct RegistryItem *new_item2 = NULL;
> --
> printf("Malloc for %s, size = %d\n", name, sizeof(RegistryItem));
^^^^^^^^^^^^^^
shouldn't that be struct RegistryItem?
> system("cat /proc/meminfo >
> /home/rohit/Code/Mediator/refmt_base/port_test/asm/memory");
> system("echo ABOUT TO MALLOC >>
> /home/rohit/Code/Mediator/refmt_base/port_test/asm/memory");
> new_item2 = malloc(sizeof(RegistryItem));
^^^^^^^^^^^^^^
same here.
can't say why that should have caused a segfault though.
--
Spiritual leadership should remain spiritual leadership and the temporal
power should not become too important in any church.
- Eleanor Roosevelt
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help