瀏覽代碼

Fix #315: crash is NNN_BMS is not set

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

+ 6
- 3
src/nnn.c 查看文件

@@ -2074,13 +2074,16 @@ static int xlink(char *suffix, char *path, char *buf, int *presel, int type)
static bool parsebmstr(void)
{
int i = 0;
bmstr = strdup(getenv(env_cfg[NNN_BMS]));
char *bms = bmstr;
char *nextkey = bms;
char *nextkey;
char *bms = getenv(env_cfg[NNN_BMS]);

if (!bms || !*bms)
return TRUE;

bmstr = strdup(bms);
bms = bmstr;
nextkey = bms;

while (*bms && i < BM_MAX) {
if (bms == nextkey) {
bookmark[i].key = *bms;


Loading…
取消
儲存