Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH 17/17: check widthp before deref (is this okay, or should it be *swidep = buf + *widthp ? *widthp : 0; or something)



On Jan 6,  6:25am, Mikael Magnusson wrote:
}
} +	if (swidep && widthp)
}  	    *swidep = buf + *widthp;

I think your parenthetical in the subject is on the right track, and
it should be

	if (swidep)
	    *swidep = widthp ? buf + *widthp : buf;



Messages sorted by: Reverse Date, Date, Thread, Author