Fix a warning on no return value.
authorRui Guo <firemeteor.guo@gmail.com>
Tue, 4 Aug 2009 16:26:55 +0000 (5 00:26 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Tue, 4 Aug 2009 16:26:55 +0000 (5 00:26 +0800)
src/lua.c

index 0157cb4..441a26d 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
@@ -753,7 +753,7 @@ int
 layout_select(lua_State *L) 
 {
   struct layout *lay = check_layout(L, 1);
-  if (!display) return;
+  if (!display) return 0;
   LoadLayout(lay, &D_canvas);
   Activate(0);
   return 0;