Skip to content

Commit 781f03a

Browse files
format
1 parent 32e1036 commit 781f03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

squashfs-mount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ static mount_entry_t *parse_mount_entries(const char **argv, int argc) {
195195
}
196196
// if @offset is present, attempt to parse offset
197197
if ((offset_str = strtok(NULL, "@"))) {
198-
char *endptr;
199198
// check if value is negative
200199
long long _f;
201200
if ((_f = strtoll(offset_str, NULL, 10)) < 0) {
202201
errx(EXIT_FAILURE, "offset (=%lld) must be >0: %s", _f, argv[i]);
203202
}
204203
// parse offset
204+
char *endptr;
205205
offset = strtoul(offset_str, &endptr, 10);
206206
if (*endptr != '\0') {
207207
errx(EXIT_FAILURE, "invalid value in offset: %s from %s", offset_str, argv[i]);

0 commit comments

Comments
 (0)