瀏覽代碼

Remove redundant variable

master
Arun Prakash Jana 7 年之前
父節點
當前提交
2e3f013ce3
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      nnn.c

+ 4
- 4
nnn.c 查看文件

@@ -1168,7 +1168,7 @@ unescape(const char *str, uint maxcols)
static char buffer[PATH_MAX]; static char buffer[PATH_MAX];
static wchar_t wbuf[PATH_MAX]; static wchar_t wbuf[PATH_MAX];
static wchar_t *buf; static wchar_t *buf;
static size_t len, width; static size_t len;


buffer[0] = '\0'; buffer[0] = '\0';
buf = wbuf; buf = wbuf;
@@ -1176,10 +1176,10 @@ unescape(const char *str, uint maxcols)
/* Convert multi-byte to wide char */ /* Convert multi-byte to wide char */
len = mbstowcs(wbuf, str, PATH_MAX); len = mbstowcs(wbuf, str, PATH_MAX);


if (maxcols) { if (maxcols && len > maxcols) {
width = wcswidth(wbuf, len); len = wcswidth(wbuf, len);


if (width > maxcols) if (len > maxcols)
wbuf[maxcols] = 0; wbuf[maxcols] = 0;
} }




||||||
x
 
000:0
Loading…
取消
儲存