typo in win32 lockfile code
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Sun, 16 Jan 2011 13:14:21 +0000 (14:14 +0100)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Sun, 16 Jan 2011 13:14:21 +0000 (14:14 +0100)
src/main.c

index 55d00a4..7db8256 100644 (file)
@@ -130,7 +130,7 @@ static int olsr_create_lock_file(bool noExitOnFail) {
 #ifdef WIN32
   HANDLE lck = CreateEvent(NULL, TRUE, FALSE, lock_file_name);
   if (NULL == lck || ERROR_ALREADY_EXISTS == GetLastError()) {
-    if (noenoExitOnFail) {
+    if (noExitOnFail) {
       return -1;
     }
     if (NULL == lck) {