浏览代码

tls: init tls hooks to {0}, avoiding fields enumeration

- if a new field is added, then should be no longer needed to update
  initialization
Daniel-Constantin Mierla 10 年之前
父节点
当前提交
92c7656a37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tls_hooks.c

+ 1 - 1
tls_hooks.c

@@ -28,7 +28,7 @@
 
 #ifdef TLS_HOOKS
 
-struct tls_hooks tls_hook= {0,0,0,0,0,0,0,0};
+struct tls_hooks tls_hook= {0};
 
 static int tls_hooks_loaded=0;