Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(880)

Unified Diff: src/nonsfi/irt/irt_interfaces.c

Issue 424763007: Non-SFI Mode: Centralise test whitelists; move to Scons (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « buildbot/buildbot_pnacl.sh ('k') | src/nonsfi/linux/linux_sys_private.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/nonsfi/irt/irt_interfaces.c
diff --git a/src/nonsfi/irt/irt_interfaces.c b/src/nonsfi/irt/irt_interfaces.c
index f9ca549ca23e1023bff12ca24e541da84a99739c..7871c073411bd01db2002cf6af76c5bf17bb1e35 100644
--- a/src/nonsfi/irt/irt_interfaces.c
+++ b/src/nonsfi/irt/irt_interfaces.c
@@ -474,7 +474,12 @@ static int irt_clock_getres(nacl_irt_clockid_t clk_id,
struct timespec *time_nacl) {
struct timespec time;
int result = check_error(clock_getres(clk_id, &time));
- convert_to_nacl_timespec(time_nacl, &time);
+ /*
+ * The timespec pointer is allowed to be NULL for clock_getres() though
+ * not for clock_gettime().
+ */
+ if (time_nacl != NULL)
+ convert_to_nacl_timespec(time_nacl, &time);
return result;
}
« no previous file with comments | « buildbot/buildbot_pnacl.sh ('k') | src/nonsfi/linux/linux_sys_private.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698