Skip to content

Commit

Permalink
Fix warning: argument 1 null where non-null expected
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Oct 8, 2024
1 parent 290c296 commit db5980b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/core/include/visp3/core/vpIoTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ template<typename T> void npz_save(std::string zipname, std::string fname, const
//write everything
fwrite(&local_header[0], sizeof(char), local_header.size(), fp);
fwrite(&npy_header[0], sizeof(char), npy_header.size(), fp);
fwrite(&data[0], sizeof(T), nels, fp);
if (data != nullptr) {
fwrite(&data[0], sizeof(T), nels, fp);
}
fwrite(&global_header[0], sizeof(char), global_header.size(), fp);
fwrite(&footer[0], sizeof(char), footer.size(), fp);
fclose(fp);
Expand Down

0 comments on commit db5980b

Please sign in to comment.