Re: [OasisOLC] BugFix Help Please

From: Daniel A. Koepke (
Date: 11/17/02

On Sun, 17 Nov 2002, Mythran wrote:

> Hmm, I hate it when ppl leave something as an exercise for the
> reader...

These are pointers, so

  OLC_CONFIG(d) = config_info;

is assigning the value of the pointer config_info (i.e., an address) to
OLC_CONFIG(d).  This is not the same as copying the data structure; you
have one structure and two pointers to it.  Perhaps you meant to do:

  *OLC_CONFIG(d) = *config_info;



   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT