# HG changeset patch # User jbe # Date 1612529445 -3600 # Node ID 82387194519b73a99905b9e5fd823494b305ed12 # Parent 8dc9b96cc5db26df253aaf29b97b4523e1a8f723 Added code to suppress compiler warning (writing one byte into region of size 0) diff -r 8dc9b96cc5db -r 82387194519b lf_update.c --- a/lf_update.c Fri Feb 05 13:31:28 2021 +0100 +++ b/lf_update.c Fri Feb 05 13:50:45 2021 +0100 @@ -76,6 +76,7 @@ } len += seglen; } + if (!len) len = 1; // not needed but suppresses compiler warning conninfo = malloc(len * sizeof(char)); if (!conninfo) { fprintf(stderr, "Error: Could not allocate memory for conninfo string\n"); diff -r 8dc9b96cc5db -r 82387194519b lf_update_issue_order.c --- a/lf_update_issue_order.c Fri Feb 05 13:31:28 2021 +0100 +++ b/lf_update_issue_order.c Fri Feb 05 13:50:45 2021 +0100 @@ -417,6 +417,7 @@ logging = 1; } for (i=argb; i