Procházet zdrojové kódy

Fix #315: crash is NNN_BMS is not set

master
Arun Prakash Jana před 6 roky
rodič
revize
8ca96422cd
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. +6
    -3
      src/nnn.c

+ 6
- 3
src/nnn.c Zobrazit soubor

@@ -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;


Načítá se…
Zrušit
Uložit