Skip to content

Commit

Permalink
Merge pull request #11 from unikraft/razvand/fix-uninitialized-fd
Browse files Browse the repository at this point in the history
run.c: Fix uninitialized field
Fix by https://github.com/razvand @razvand
  • Loading branch information
trholding authored Oct 9, 2023
2 parents 6323ebb + 0fb2db6 commit ba0d8ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ void read_checkpoint(char* checkpoint, Config* config, TransformerWeights* weigh
// memory map the Transformer weights
*data = (float*)(checkpoint + sizeof(Config));
float* weights_ptr = *data;
*fd = -1;
memory_map_weights(weights, config, weights_ptr, shared_weights);
}
#else
Expand Down

0 comments on commit ba0d8ca

Please sign in to comment.