On Fri, Sep 07, 2001 at 03:04:16PM -0700, Bill Swingle wrote:
> Anyway, it's an easy fix but my real question is, is this the correct
> way to destroy the value of a variable in C? Here's my patch:
>
> --- src/usr.sbin/pkg_install/add/main.c Fri Sep 7 15:02:17 2001
> +++ src/usr.sbin/pkg_install/add/main.c.orig Fri Sep 7 13:11:40 2001
> @@ -189,7 +189,6 @@
> }
> }
> }
> - strlcpy(packagesite, "", sizeof(packagesite));
> }
> }
> /* If no packages, yelp */
Surely:
*packagesite = '\0';
would do just as well?
Joe
PGP signature