Check the return value of the gettimeofday() in 'jerry_port_get_time_zone' and 'jerry_port_get_current_time' functions.
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -65,5 +65,5 @@ int
|
||||
gettimeofday (void *tp __attr_unused___, /**< struct timeval */
|
||||
void *tzp __attr_unused___) /**< struct timezone */
|
||||
{
|
||||
return 0;
|
||||
return -1;
|
||||
} /* gettimeofday */
|
||||
|
||||
Reference in New Issue
Block a user