Browse Source

Fix build failure

master
Arun Prakash Jana 8 years ago
parent
commit
8404c0fd04
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nnn.c

+ 2
- 2
nnn.c View File

@@ -1312,7 +1312,7 @@ static int
show_help(void) show_help(void)
{ {
char tmp[] = "/tmp/nnnXXXXXX"; char tmp[] = "/tmp/nnnXXXXXX";
int fd = mkstemp(tmp); int i = 0, fd = mkstemp(tmp);
if (fd == -1) if (fd == -1)
return -1; return -1;


@@ -1357,7 +1357,7 @@ show_help(void)


if (getenv("NNN_BMS")) { if (getenv("NNN_BMS")) {
dprintf(fd, "BOOKMARKS\n"); dprintf(fd, "BOOKMARKS\n");
for (int i = 0; i < MAX_BM; i++) for (; i < MAX_BM; i++)
if (bookmark[i].key) if (bookmark[i].key)
dprintf(fd, " %s: %s\n", bookmark[i].key, bookmark[i].loc); dprintf(fd, " %s: %s\n", bookmark[i].key, bookmark[i].loc);
else else


||||||
x
 
000:0
Loading…
Cancel
Save