ソースを参照

Fix #315: crash is NNN_BMS is not set

master
Arun Prakash Jana 6年前
コミット
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;


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