how do i fix the maybe uninitialized warning
int make_post(const User *author, User *target, char *contents) {
    if (author == NULL || target == NULL) {
        return 2;
    }
    // Can't use friends function to check because there is no head passed in. We only need to check for friendship one way as it is symmetrical.
    int auth_friends_w_target = 0;

    for (int i = 0; i < 10; i++) {
        if (author->friends[i] == target) {
            auth_friends_w_target = 1;
        }
    }

    if (!auth_friends_w_target) {
        return 1;
    }

    Post *new_post = malloc(sizeof(Post));
    if (new_post == NULL) {
        perror("malloc");
        exit(-1);
    }
    // could have errors with null terminator
    strncpy(new_post->author, author->name, 31);
    strcpy(new_post->contents, contents);

    time_t current_time;
    time_t non_readable_time = time(&current_time);

    new_post->date = &non_readable_time;
    return 0;
}