|
I think the correct way to view this is if ptr is NULL then osize cannot mean the sizeof the “old” allocation since this has no meaning when size is NULL. So in 5.1 osize is undefined when ptr is NULL, while in 5.2 osize when ptr is NULL has additional semantics. —Tim |