From 684f53f7e7322bd611f5ee8fcc69254b6668fb22 Mon Sep 17 00:00:00 2001 From: jblanked <82678820+jblanked@users.noreply.github.com> Date: Sun, 1 Dec 2024 07:32:17 -0500 Subject: [PATCH] Fix NULL pointer --- callback/flip_social_callback.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/callback/flip_social_callback.c b/callback/flip_social_callback.c index 50f6c31f1b9..c59a144cc8a 100644 --- a/callback/flip_social_callback.c +++ b/callback/flip_social_callback.c @@ -832,12 +832,12 @@ static void feed_dialog_callback(DialogExResult result, void *context) char new_save[256]; snprintf(new_save, sizeof(new_save), "{\"id\":%u,\"username\":\"%s\",\"message\":\"%s\",\"flip_count\":%u,\"flipped\":%s}", flip_feed_item->id, flip_feed_item->username, flip_feed_item->message, flip_feed_item->flips, flip_feed_item->is_flipped ? "true" : "false"); - if (!flip_social_save_post((char *)flip_feed_item->id, new_save)) - { - FURI_LOG_E(TAG, "Failed to save the feed post"); - fhttp.state = ISSUE; - return; - } + // if (!flip_social_save_post((char *)flip_feed_item->id, new_save)) + // { + // FURI_LOG_E(TAG, "Failed to save the feed post"); + // fhttp.state = ISSUE; + // return; + // } } // switch view, free dialog, re-alloc dialog, switch back to dialog view_dispatcher_switch_to_view(app->view_dispatcher, FlipSocialViewLoggedInSettings);