[Git][NTPsec/ntpsec][master] pps-api: squash spurious uninitialized variable warning.
Gary E. Miller
gitlab at mg.gitlab.com
Thu Feb 16 21:41:29 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
a0393d48 by Gary E. Miller at 2017-02-16T13:40:49-08:00
pps-api: squash spurious uninitialized variable warning.
- - - - -
1 changed file:
- ntpfrob/pps-api.c
Changes:
=====================================
ntpfrob/pps-api.c
=====================================
--- a/ntpfrob/pps-api.c
+++ b/ntpfrob/pps-api.c
@@ -69,7 +69,7 @@ void ppscheck(char *device)
int fd;
pps_info_t pi;
pps_params_t pp;
- pps_handle_t ph;
+ pps_handle_t ph = 0; /* 0 to prevent spurious uninialized warning */
int i, mode;
u_int olda = 0, oldc = 0;
struct timespec to;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a0393d486d1fa1fad599858a952dc9eca35a839d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170216/cd6bcdca/attachment.html>
More information about the vc
mailing list