Thumbnail

rani/cscroll.git

Clone URL: https://git.buni.party/rani/cscroll.git

commit cbfdc519171e196feaf8687e374ad1d917b2af27 Author: Raniconduh <clagv.randomgames@gmail.com> Date: Thu Jan 12 10:33:45 2023 +0000 remove unecessary setting of null bytes in config reader diff --git a/src/opts.c b/src/opts.c index 62fc972..4becdee 100644 --- a/src/opts.c +++ b/src/opts.c @@ -14915 +14912 @@ void read_config(void) {   char line[256];     while (!done) { - *line = '\0'; -   short len = 0; // only needs to go up to 255     // read line from file into buffer   int c;   while ((c = fgetc(fp)) != '\n') {   if (len >= 255 || c == EOF) { - line[len] = '\0';   done = c == EOF; // only done at EOF   break;   }