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:
Robert Sipka
2016-05-06 10:06:31 +02:00
parent 3de4170c15
commit 94161d350a
2 changed files with 9 additions and 3 deletions
@@ -65,5 +65,5 @@ int
gettimeofday (void *tp __attr_unused___, /**< struct timeval */
void *tzp __attr_unused___) /**< struct timezone */
{
return 0;
return -1;
} /* gettimeofday */