liquid_feedback_core

diff lf_update_issue_order.c @ 624:82387194519b

Added code to suppress compiler warning (writing one byte into region of size 0)
author jbe
date Fri Feb 05 13:50:45 2021 +0100 (2021-02-05)
parents d301dc24b25c
children
line diff
     1.1 --- a/lf_update_issue_order.c	Fri Feb 05 13:31:28 2021 +0100
     1.2 +++ b/lf_update_issue_order.c	Fri Feb 05 13:50:45 2021 +0100
     1.3 @@ -417,6 +417,7 @@
     1.4        logging = 1;
     1.5      }
     1.6      for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
     1.7 +    if (!len) len = 1;  // not needed but suppresses compiler warning
     1.8      conninfo = malloc(len * sizeof(char));
     1.9      if (!conninfo) {
    1.10        fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");

Impressum / About Us