Skip to content

Commit

Permalink
examples/run: avoid an msvc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 11, 2024
1 parent 30927d0 commit fa496f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/run/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ int
main(int argc, char **argv)
{
uint8_t *p = NULL;
size_t sz = 0; /* MSVC C4701 */
struct module *m = NULL;
struct instance *inst = NULL;
int ret;
Expand All @@ -34,7 +35,6 @@ main(int argc, char **argv)
/*
* load a module
*/
size_t sz;
ret = map_file(filename, (void **)&p, &sz);
if (ret != 0) {
xlog_error("map_file failed with %d", ret);
Expand Down

0 comments on commit fa496f2

Please sign in to comment.