Reduce scope of data variable
This fixes a warning from Codacy. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
01bd2d1896
commit
b73fa1cc28
|
@ -198,7 +198,6 @@ static int
|
||||||
luaA_selection_transfer_send(lua_State *L)
|
luaA_selection_transfer_send(lua_State *L)
|
||||||
{
|
{
|
||||||
size_t data_length;
|
size_t data_length;
|
||||||
const char *data;
|
|
||||||
bool incr = false;
|
bool incr = false;
|
||||||
size_t incr_size = 0;
|
size_t incr_size = 0;
|
||||||
|
|
||||||
|
@ -278,7 +277,7 @@ luaA_selection_transfer_send(lua_State *L)
|
||||||
len, &atoms[0]);
|
len, &atoms[0]);
|
||||||
} else {
|
} else {
|
||||||
/* 'data' is a string with the data to transfer */
|
/* 'data' is a string with the data to transfer */
|
||||||
data = luaL_checklstring(L, -1, &data_length);
|
const char *data = luaL_checklstring(L, -1, &data_length);
|
||||||
|
|
||||||
if (!incr)
|
if (!incr)
|
||||||
incr_size = data_length;
|
incr_size = data_length;
|
||||||
|
|
Loading…
Reference in New Issue