Some more static code analysis warning fixes
This commit is contained in:
parent
f45fd77d68
commit
03573db27c
|
@ -12158,12 +12158,15 @@ static void materialui_refresh_thumbnail_image(void *userdata, size_t i)
|
|||
gfx_thumbnail_reset(&node->thumbnails.secondary);
|
||||
}
|
||||
|
||||
/* No need to actually request thumbnails here
|
||||
* > Just set delay timer to the current maximum
|
||||
* value, and thumbnails will be processed via
|
||||
* regular means on the next frame */
|
||||
node->thumbnails.primary.delay_timer = stream_delay;
|
||||
node->thumbnails.secondary.delay_timer = stream_delay;
|
||||
if (node)
|
||||
{
|
||||
/* No need to actually request thumbnails here
|
||||
* > Just set delay timer to the current maximum
|
||||
* value, and thumbnails will be processed via
|
||||
* regular means on the next frame */
|
||||
node->thumbnails.primary.delay_timer = stream_delay;
|
||||
node->thumbnails.secondary.delay_timer = stream_delay;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4227,7 +4227,8 @@ bool command_event(enum event_command cmd, void *data)
|
|||
settings->paths.directory_runtime_log,
|
||||
settings->paths.directory_playlist);
|
||||
|
||||
if ( runloop_st->flags & RUNLOOP_FLAG_CORE_RUNNING
|
||||
if ( runloop_st
|
||||
&& (runloop_st->flags & RUNLOOP_FLAG_CORE_RUNNING)
|
||||
&& settings->bools.savestate_auto_save)
|
||||
{
|
||||
command_event_save_auto_state();
|
||||
|
|
17
runahead.c
17
runahead.c
|
@ -252,7 +252,6 @@ static bool write_file_with_random_name(char **temp_dll_path,
|
|||
const char *tmp_path, const void* data, ssize_t dataSize)
|
||||
{
|
||||
int i;
|
||||
size_t ext_len;
|
||||
char number_buf[32];
|
||||
bool okay = false;
|
||||
const char *prefix = "tmp";
|
||||
|
@ -270,14 +269,16 @@ static bool write_file_with_random_name(char **temp_dll_path,
|
|||
else
|
||||
ext = (char*)calloc(1,1);
|
||||
|
||||
ext_len = strlen(ext);
|
||||
|
||||
if (ext_len > 0)
|
||||
if (ext)
|
||||
{
|
||||
strcat_alloc(&ext, ".");
|
||||
memmove(ext + 1, ext, ext_len);
|
||||
ext[0] = '.';
|
||||
ext_len++;
|
||||
size_t ext_len = strlen(ext);
|
||||
if (ext_len > 0)
|
||||
{
|
||||
strcat_alloc(&ext, ".");
|
||||
memmove(ext + 1, ext, ext_len);
|
||||
ext[0] = '.';
|
||||
ext_len++;
|
||||
}
|
||||
}
|
||||
|
||||
/* Try up to 30 'random' filenames before giving up */
|
||||
|
|
Loading…
Reference in New Issue