X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 14 Jul 2004 18:17:39 -0400 Message-Id: <200407142217.i6EMHdgO007485@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <1089842517.34974@proxy2.srv.ualberta.ca> (jdhanley AT telusplanet DOT net) Subject: Re: pointers to structs References: <1089842517 DOT 34974 AT proxy2 DOT srv DOT ualberta DOT ca> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > int main() > { > struct data_list * list; > > list->head = NULL; > list->tail = NULL; > } > > Can I not assign NULL to these pointers? If I take the 2 assignments out, > it runs ok. Hint: Where does list point to?