Browse Source

* always print errors

master
Alex 'AdUser' Z 13 years ago
parent
commit
e7ed38cb06
  1. 4
      src/torrent2json.c

4
src/torrent2json.c

@ -63,9 +63,7 @@ get_string(int chr)
if ((buf = malloc(sizeof(char) * len + 1)) == NULL) if ((buf = malloc(sizeof(char) * len + 1)) == NULL)
{ {
#ifdef DEBUG
fprintf(stderr, "Can't allocate memory, exiting.\n"); fprintf(stderr, "Can't allocate memory, exiting.\n");
#endif
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@ -130,9 +128,7 @@ void (*select_handler(int chr))(int)
return get_string; return get_string;
break; break;
default: default:
#ifdef DEBUG
fprintf(stderr, "Unknown marker: %u\n", chr); fprintf(stderr, "Unknown marker: %u\n", chr);
#endif
break; break;
} }

Loading…
Cancel
Save