ソースを参照

[Minor] Another similar `getline` fix

pull/4873/head
Vsevolod Stakhov 2ヶ月前
コミット
8637480155
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      src/lua/lua_util.c

+ 2
- 2
src/lua/lua_util.c ファイルの表示

@@ -1,5 +1,5 @@
/*
* Copyright 2023 Vsevolod Stakhov
* Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -2469,7 +2469,7 @@ lua_util_readline(lua_State *L)
{
LUA_TRACE_POINT;
const gchar *prompt = "";
gchar *input;
gchar *input = NULL;

if (lua_type(L, 1) == LUA_TSTRING) {
prompt = lua_tostring(L, 1);

読み込み中…
キャンセル
保存