mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-26 21:36:43 +08:00
Fix Coverity Scan 1436848
This commit is contained in:
@@ -460,7 +460,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Warning: Unsupported chunk \"%d\" of length %d in persistent database file at position %ld. Ignoring.\n", chunk, length, ftell(fd));
|
||||
fseek(fd, length, SEEK_CUR);
|
||||
if(fseek(fd, length, SEEK_CUR)){
|
||||
fprintf(stderr, "Error: %s\n", strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user