ソースを参照

Allow for empty replacement string (#1178)

pull/1181/head
Benjamin Stigsen 5年前
committed by GitHub
コミット
2d6303e9fe
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c ファイルの表示

@ -1180,7 +1180,7 @@ const char *TextSubtext(const char *text, int position, int length)
char *TextReplace(char *text, const char *replace, const char *by)
{
// Sanity checks and initialization
if (!text || !replace || !by || by[0] == '\0') return NULL;
if (!text || !replace || !by) return NULL;
char *result;

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