[Git][NTPsec/ntpsec][master] Fix uninitialized variable.

Eric S. Raymond gitlab at mg.gitlab.com
Mon Jun 27 06:15:27 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
e171847a by Eric S. Raymond at 2016-06-27T02:14:49-04:00
Fix uninitialized variable.

Probably fixes Issue #86: latest ntpq segfaults.

- - - - -


1 changed file:

- ntpq/ntpq-subs.c


Changes:

=====================================
ntpq/ntpq-subs.c
=====================================
--- a/ntpq/ntpq-subs.c
+++ b/ntpq/ntpq-subs.c
@@ -1599,7 +1599,7 @@ doprintpeers(
 	char type = '?';
 	char whenbuf[8], pollbuf[8];
 	char clock_name[NI_MAXHOST];
-	char *displayname;
+	char *displayname = NULL;
 
 	get_systime(&ts);
 	



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e171847a7987e01d1caa62efea34679b70f597ad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160627/b23077ac/attachment.html>


More information about the vc mailing list