diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index aa5c5bd56584bfb3462fc563223485be5ed2285d..7b0254f7890c8d1e01565eb91e52e934faa4cf44 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -284,8 +284,8 @@ static inline int __ast_pthread_mutex_destroy(const char *filename, int lineno,
 	t->file[0] = filename;
 	t->lineno[0] = lineno;
 	t->func[0] = func;
-	t->reentrancy=0;
-	t->thread[0]  = 0;
+	t->reentrancy = 0;
+	t->thread[0] = 0;
 	reentrancy_unlock_cs(t);
 	delete_reentrancy_cs(t);