aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-10-28 13:09:01 +0000
committerJason Woodward2004-10-28 13:09:01 +0000
commit286eb6858a9e1e2495f2bd8553dd35111b1b6b06 (patch)
tree95b33f99482830f560cf5e0905aa185061d17d71 /src
parent048a905b69ce01a4a801add1d8cfc0b7f388acad (diff)
downloadslapt-get-286eb6858a9e1e2495f2bd8553dd35111b1b6b06.tar.gz
initialized pkg in pkg_action_show()
Diffstat (limited to 'src')
-rw-r--r--src/action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/action.c b/src/action.c
index 1116b08..9df0802 100644
--- a/src/action.c
+++ b/src/action.c
@@ -273,11 +273,11 @@ void pkg_action_search(const char *pattern){
/* show the details for a specific package */
void pkg_action_show(const char *pkg_name){
- pkg_info_t *pkg;
struct pkg_list *avail_pkgs;
struct pkg_list *installed_pkgs;
sg_regex pkg_regex;
int bool_installed = 0;
+ pkg_info_t *pkg = NULL;
avail_pkgs = get_available_pkgs();
installed_pkgs = get_installed_pkgs();