Commit 64bb037d authored by claes's avatar claes

Message text is empty for zero sts

parent fd865137
......@@ -2159,7 +2159,10 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_getMsgText
status = (pwr_tStatus) sts;
msg_GetText( status, buf, sizeof(buf));
if ( status == 0)
strcpy( buf, "");
else
msg_GetText( status, buf, sizeof(buf));
jbuf = (*env)->NewStringUTF( env, buf);
jsts = (jint) GDH__SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment