Browse Source

Fixed segfault when adding pool profile via ncurses GUI #322

djm34
troky 11 years ago
parent
commit
b6aefc6ebe
  1. 2
      sgminer.c

2
sgminer.c

@ -7660,7 +7660,7 @@ static bool input_pool(bool live)
if (strcmp(name, "-1") == 0) strcpy(name, ""); if (strcmp(name, "-1") == 0) strcpy(name, "");
desc = curses_input("Description (optional)"); desc = curses_input("Description (optional)");
if (strcmp(desc, "-1") == 0) strcpy(desc, ""); if (strcmp(desc, "-1") == 0) strcpy(desc, "");
algo = curses_input("Profile (optional)"); profile = curses_input("Profile (optional)");
if (strcmp(profile, "-1") == 0) profile[0] = '\0'; if (strcmp(profile, "-1") == 0) profile[0] = '\0';
algo = curses_input("Algorithm (optional)"); algo = curses_input("Algorithm (optional)");
if (strcmp(algo, "-1") == 0) algo[0] = '\0'; if (strcmp(algo, "-1") == 0) algo[0] = '\0';

Loading…
Cancel
Save