diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-12-28 23:01:44 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-12-28 23:56:40 -0800 |
| commit | 919b7ee54fd8f2bada066e90f31c682fb70c2821 (patch) | |
| tree | 622488b011a9bfa933648607f9c8154f6cea9843 | |
| parent | 63e0baf37c8024174aa4bacb12dccc7040de74d8 (diff) | |
| download | nng-919b7ee54fd8f2bada066e90f31c682fb70c2821.tar.gz nng-919b7ee54fd8f2bada066e90f31c682fb70c2821.tar.bz2 nng-919b7ee54fd8f2bada066e90f31c682fb70c2821.zip | |
fixes #158 nni_plat_init: undefined return value if called from two threads
| -rw-r--r-- | src/platform/windows/win_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/windows/win_thread.c b/src/platform/windows/win_thread.c index 6cfb4162..971c7c37 100644 --- a/src/platform/windows/win_thread.c +++ b/src/platform/windows/win_thread.c @@ -142,7 +142,7 @@ static LONG plat_inited = 0; int nni_plat_init(int (*helper)(void)) { - int rv; + int rv = 0; static SRWLOCK lock = SRWLOCK_INIT; if (plat_inited) { |
