From ee780c99916c1403ed3faacf1171fd50313ff175 Mon Sep 17 00:00:00 2001 From: Behemoth Date: Sun, 12 Jul 2020 21:11:49 +0200 Subject: [PATCH] address review --- nx/source/services/news.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nx/source/services/news.c b/nx/source/services/news.c index 9ed37d21..147b7a8c 100644 --- a/nx/source/services/news.c +++ b/nx/source/services/news.c @@ -148,8 +148,8 @@ Result newsGetSavedataUsage(u64 *current, u64 *total) { Result rc = serviceDispatchOut(&g_newsSrv, 30110, out); if (R_SUCCEEDED(rc)) { - *current = out.current; - *total = out.total; + if (current) *current = out.current; + if (total) *total = out.total; } return rc; @@ -158,7 +158,7 @@ Result newsGetSavedataUsage(u64 *current, u64 *total) { Result newsIsSystemUpdateRequired(bool *out) { u8 tmp=0; Result rc = serviceDispatchOut(&g_newsSrv, 30200, tmp); - if (R_SUCCEEDED(rc)) *out = tmp; + if (R_SUCCEEDED(rc) && out) *out = tmp & 1; return rc; }