liquid_feedback_core
diff lf_update.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 | aa23fa17604d |
children |
line diff
1.1 --- a/lf_update.c Fri Feb 05 13:31:28 2021 +0100 1.2 +++ b/lf_update.c Fri Feb 05 13:50:45 2021 +0100 1.3 @@ -76,6 +76,7 @@ 1.4 } 1.5 len += seglen; 1.6 } 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");