aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-11-28 03:57:31 +0000
committerJason Woodward2004-11-28 03:57:31 +0000
commitf41b060d8484f487948b15a735433a676455ecc8 (patch)
tree3614e382bfdd2dbeba1d488591bc3c68f3d9c61c /src
parentd1da102fc3eeaa15c2913df59c097e4393ac3cbb (diff)
downloadslapt-get-f41b060d8484f487948b15a735433a676455ecc8.tar.gz
updated init_pkg() to init static chars with \0
Diffstat (limited to 'src')
-rw-r--r--src/package.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/package.c b/src/package.c
index 01aa852..fb160b6 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1782,6 +1782,16 @@ pkg_info_t *init_pkg(void){
pkg->size_c = 0;
pkg->size_u = 0;
+ pkg->name[0] = '\0';
+ pkg->version[0] = '\0';
+ pkg->mirror[0] = '\0';
+ pkg->location[0] = '\0';
+ pkg->description[0] = '\0';
+ pkg->required[0] = '\0';
+ pkg->conflicts[0] = '\0';
+ pkg->suggests[0] = '\0';
+ pkg->md5[0] = '\0';
+
return pkg;
}