| Index: native_client_sdk/src/examples/debugging/hello_world.c
|
| diff --git a/native_client_sdk/src/examples/debugging/hello_world.c b/native_client_sdk/src/examples/debugging/hello_world.c
|
| index b081062cfd562d98fac07522260482782b3fcee0..a5dd33342fa50993bc3077532b1787880916e15e 100644
|
| --- a/native_client_sdk/src/examples/debugging/hello_world.c
|
| +++ b/native_client_sdk/src/examples/debugging/hello_world.c
|
| @@ -90,7 +90,8 @@ static struct PP_Var CStrToVar(const char* str) {
|
|
|
|
|
| static void PostCompletionCallback(void* user_data, int32_t result) {
|
| - ppb_messaging_interface->PostMessage(g_Instance, CStrToVar(user_data));
|
| + const char *str = (const char *) user_data;
|
| + ppb_messaging_interface->PostMessage(g_Instance, CStrToVar(str));
|
| free(user_data);
|
| }
|
|
|
| @@ -229,7 +230,7 @@ static PP_Bool Instance_HandleDocumentLoad(PP_Instance instance,
|
|
|
| /**
|
| * Handles message from JavaScript.
|
| - *
|
| + *
|
| * Any message from JS is a request to cause the main thread to crash.
|
| */
|
| static void Messaging_HandleMessage(PP_Instance instance,
|
|
|