On 2013-Feb-23 11:54 , Mark Cave-Ayland wrote:
- if (str == NULL || parnum == 0) { /* According to the spec, partition 0 as well as no
arguments means the whole disk */ offs = (long long)0; size = (long long)__be32_to_cpu(dmap.sbBlkCount) * bs;
Strangely this works for me if I build with -O0 -g but not with the default of -Os -g. Investigating...
Aren't there parens missing? I.e., shouldn't that be ((str == NULL) || (parnum == 0))?