aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-12-19 00:42:22 +0000
committerJason Woodward2004-12-19 00:42:22 +0000
commite4e2e38afddaf900c9ae83446b4ea65b1b8a54ac (patch)
treec2835d767d0a0da4d5ab5e0137b77dca0034aaae /src
parent72983c12852470cd2f7f6ad96961876de0896781 (diff)
downloadslapt-get-e4e2e38afddaf900c9ae83446b4ea65b1b8a54ac.tar.gz
fixed sv.po and removed duplicate initialization of pkgs->pkgs
Diffstat (limited to 'src')
-rw-r--r--src/package.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/package.c b/src/package.c
index c34a352..1e2a037 100644
--- a/src/package.c
+++ b/src/package.c
@@ -461,12 +461,6 @@ struct pkg_list *get_installed_pkgs(void){
return list;
}
- list->pkgs = malloc( sizeof *list->pkgs );
- if( list->pkgs == NULL ){
- fprintf(stderr,_("Failed to malloc %s\n"),"pkgs");
- exit(1);
- }
-
while( (file = readdir(pkg_log_dir)) != NULL ){
pkg_info_t *tmp_pkg;
FILE *pkg_f;