20 Apr
2018
20 Apr
'18
8:16 a.m.
Hi Huw,
Is it possible that list could be NULL so that the while loop is never executed? If so, then the above line would touch buffer[-1]. If list is never NULL consider rewriting the loop as a do-while.
No, the list is checked for NULL in the calling function. I can rewrite it as a do-while though for clarity. Thanks, Owen