From 28c74a901587b5a105b8cdab8539f33ac750b21f Mon Sep 17 00:00:00 2001 From: kulnaman Date: Tue, 9 Apr 2024 13:17:54 -0400 Subject: [PATCH] add return statement for missing platforms in variorum_get_energy_json (#538) --- src/variorum/variorum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/variorum/variorum.c b/src/variorum/variorum.c index 764b0488d..c870282d8 100644 --- a/src/variorum/variorum.c +++ b/src/variorum/variorum.c @@ -1739,6 +1739,7 @@ int variorum_get_energy_json(char **get_energy_obj_str) VARIORUM_ERROR_FEATURE_NOT_IMPLEMENTED, getenv("HOSTNAME"), __FILE__, __FUNCTION__, __LINE__); + return 0; } err = g_platform[i].variorum_get_energy_json(node_obj); if (err)