[Git][NTPsec/ntpsec][master] Fix missing {} on error path

Hal Murray gitlab at mg.gitlab.com
Wed Jan 20 04:38:06 UTC 2016


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
3ab044e9 by Hal Murray at 2016-01-19T20:37:21-08:00
Fix missing {} on error path

- - - - -


1 changed file:

- libntp/work_thread.c


Changes:

=====================================
libntp/work_thread.c
=====================================
--- a/libntp/work_thread.c
+++ b/libntp/work_thread.c
@@ -461,12 +461,13 @@ start_blocking_thread_internal(
 	} else if (stacksize < THREAD_MINSTACKSIZE) {
 		rc = pthread_attr_setstacksize(&thr_attr,
 					       THREAD_MINSTACKSIZE);
-		if (0 != rc)
+		if (0 != rc) {
 			errno = rc;
 			msyslog(LOG_ERR,
 				"start_blocking_thread: pthread_attr_setstacksize(0x%lx -> 0x%lx) %m",
 				(u_long)stacksize,
 				(u_long)THREAD_MINSTACKSIZE);
+		}
 	}
 	pthread_attr_setscope(&thr_attr, PTHREAD_SCOPE_SYSTEM);
 	c->thread_ref = emalloc_zero(sizeof(*c->thread_ref));



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3ab044e981c30cef6e729909e4ca785767616fc2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160120/6ed23a9e/attachment.html>


More information about the vc mailing list