aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-17 16:42:31 +0000
committerRoy Marples <roy@marples.name>2008-03-17 16:42:31 +0000
commitc74cfabe2e066a1bbf7fb8e6dfe652fe012c70bf (patch)
treeae90a3319362abbf2175e98e71a47c9fc78b20f4 /src
parent5d77c0db6b8641b39a27b0824fc3a7e075d38ff5 (diff)
init some vars.
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc-daemon.c1
-rw-r--r--src/librc/librc.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c
index ac72c904..aed37e42 100644
--- a/src/librc/librc-daemon.c
+++ b/src/librc/librc-daemon.c
@@ -238,7 +238,6 @@ RC_PIDLIST *rc_find_pids(const char *const *argv, const char *cmd,
RC_PID *pi;
pid_t p;
const char *const *arg;
- int npids = 0;
int match;
if ((kd = kvm_openfiles(_KVM_PATH, _KVM_PATH,
diff --git a/src/librc/librc.c b/src/librc/librc.c
index df6ab9c0..cb75521f 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -840,7 +840,7 @@ librc_hidden_def(rc_services_in_runlevel)
RC_STRINGLIST *rc_services_in_state(RC_SERVICE state)
{
RC_STRINGLIST *services;
- RC_STRINGLIST *list;
+ RC_STRINGLIST *list = NULL;
RC_STRINGLIST *dirs;
RC_STRING *d;
char dir[PATH_MAX];
@@ -935,7 +935,7 @@ librc_hidden_def(rc_service_delete)
RC_STRINGLIST *rc_services_scheduled_by(const char *service)
{
RC_STRINGLIST *dirs = ls_dir(RC_SVCDIR "/scheduled", 0);
- RC_STRINGLIST *list;
+ RC_STRINGLIST *list = NULL;
RC_STRING *dir;
char file[PATH_MAX];