[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-dev: Wierdness in gschem's o_basic.c
yes unless.... o_list becomes null after the o_list == null return.
Peter TB Brett wrote:
>Came across something odd in gschem's o_basic.c today.
>
>On line 624, there's a block:
>
>if (o_list == NULL) {
> ...
> return;
>}
>
>Strangely, there follow a number of blocks of the form:
>
>if (o_list) {
> ... <block1>
>} else if (s_list) {
> ... <block2>
>}
>
>Would I be right in thinking that <block2> is NEVER executed?
>
>Peter
>
>
>------------------------------------------------------------------------
>
>
>
>_______________________________________________
>geda-dev mailing list
>geda-dev@xxxxxxxxxxxxxx
>http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
>
_______________________________________________
geda-dev mailing list
geda-dev@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev