瀏覽代碼

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;

Loading…
取消
儲存