From: Davin McCall Date: Mon, 8 Jan 2018 19:56:43 +0000 (+0000) Subject: Clean up warning in process_restart_timer. X-Git-Tag: v0.08~63 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=46eef66b1bb691f89b70e6c29b6ed0a8fc1a59f4;p=oweals%2Fdinit.git Clean up warning in process_restart_timer. Initialise the service pointer via the constructor to avoid warning. --- diff --git a/src/service.cc b/src/service.cc index 4315682..1de7212 100644 --- a/src/service.cc +++ b/src/service.cc @@ -1402,7 +1402,7 @@ base_process_service::base_process_service(service_set *sset, string name, std::list> &command_offsets, const std::list &deplist_p) : service_record(sset, name, service_type_p, deplist_p), child_listener(this), - child_status_listener(this) + child_status_listener(this), restart_timer(this) { program_name = std::move(command); exec_arg_parts = separate_args(program_name, command_offsets); diff --git a/src/service.h b/src/service.h index 0e05da4..2cde697 100644 --- a/src/service.h +++ b/src/service.h @@ -610,7 +610,8 @@ class process_restart_timer : public eventloop_t::timer_impl