Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2008-12-30 20:10:01 +0300
committerstarkos <none@none>2008-12-30 20:10:01 +0300
commitcfde023da268887e843dc0cd33239e1161bc9433 (patch)
tree7729faa6c22c30fb9b4c838b64c01d60a9834ead /src/host/os_match.c
parent8e0a2c1c2e1517aa193452b617809309341d259c (diff)
Fixed constant loop expression warning (where did this come from?)
Diffstat (limited to 'src/host/os_match.c')
-rw-r--r--src/host/os_match.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/os_match.c b/src/host/os_match.c
index e96b6b5..2b171a3 100644
--- a/src/host/os_match.c
+++ b/src/host/os_match.c
@@ -60,7 +60,7 @@ int os_matchnext(lua_State* L)
if (m->handle == INVALID_HANDLE_VALUE)
return 0;
- while (1)
+ while (m) /* loop forever */
{
if (!m->is_first)
{
@@ -75,6 +75,8 @@ int os_matchnext(lua_State* L)
return 1;
}
}
+
+ return 0;
}
#else