From: Rui Guo Date: Tue, 4 Aug 2009 16:26:55 +0000 (+0800) Subject: Fix a warning on no return value. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/338def5304a22cd9c7020baeb263ad55fbd9658e Fix a warning on no return value. --- diff --git a/src/lua.c b/src/lua.c index 0157cb4..441a26d 100644 --- 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;