On 10/02/2014 02:16 AM, Patrick Georgi wrote:
This could silently fail which leads to surprising behaviour.
diff --git a/src/set.c b/src/set.c
- fseek(fp, offset, SEEK_SET);
+ if (!fseek(fp, offset, SEEK_SET)) {
fseek is supposed to return the current offset, or -1 on error. I think
that should say if (fseek(...) < 0) or if (fseek(...) == -1)) or if
(fseek(...) != offset).
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html