From 85c5bffbcce211b2cae60cf897f1c19cf2b49b08 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 27 Apr 2009 13:36:26 +0200 Subject: [PATCH] luaa: use only one addsl Signed-off-by: Julien Danjou --- luaa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/luaa.c b/luaa.c index 3e52c0b19..aea5a077f 100644 --- a/luaa.c +++ b/luaa.c @@ -752,9 +752,8 @@ luaA_init(xdgHandle* xdg) buffer_init(&buf); #define A_LUAA_FIRST_STRING "package.path = package.path .. \";" #define A_LUAA_SECOND_STRING "/awesome/?.lua;" - buffer_addsl(&buf, A_LUAA_FIRST_STRING); - buffer_addsl(&buf, A_LUAA_SECOND_STRING); - buffer_addsl(&buf, "/awesome/?/init.lua\""); +#define A_LUAA_FULL_STRING A_LUAA_FIRST_STRING A_LUAA_SECOND_STRING "/awesome/?/init.lua\"" + buffer_addsl(&buf, A_LUAA_FULL_STRING); for(; *xdgconfigdirs; xdgconfigdirs++) { size_t len = a_strlen(*xdgconfigdirs); @@ -769,6 +768,7 @@ luaA_init(xdgHandle* xdg) } #undef A_LUAA_FIRST_STRING #undef A_LUAA_SECOND_STRING +#undef A_LUAA_FULL_STRING buffer_wipe(&buf); }