summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-03-06 19:54:42 +0000
committerJason Woodward2005-03-06 19:54:42 +0000
commit11247c15e3887199bbbfabb4b71441ab355577a5 (patch)
treeacbeffebb49082f339ebdcb03b1a253aadf06d18 /src
parent943118023616eb8c2a063cd47852f9876092f188 (diff)
downloadslapt-get-11247c15e3887199bbbfabb4b71441ab355577a5.tar.gz
fixed warning that pkg might be uninitialized on newer compilers
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 bb7ef7e..e355a50 100644
--- a/src/action.c
+++ b/src/action.c
@@ -227,9 +227,9 @@ void pkg_action_remove(const rc_config *global_config,const pkg_action_args_t *a
init_regex(&pkg_regex,PKG_LOG_PATTERN);
for(i = 0; i < action_args->count; i++){
- pkg_info_t *pkg;
unsigned int c;
struct pkg_list *deps;
+ pkg_info_t *pkg = NULL;
/* Use regex to see if they specified a particular version */
execute_regex(&pkg_regex,action_args->pkgs[i]);