Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
extjs: coverity fixes
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 6d59411 commit cf8cf94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webui/extjs.c
Expand Up @@ -485,6 +485,10 @@ extjs_config(http_connection_t *hc, const char *remain, void *opaque)
/* Misc */
pthread_mutex_lock(&global_lock);
m = config_get_all();
if (!m) {
pthread_mutex_unlock(&global_lock);
return HTTP_STATUS_BAD_REQUEST;
}

/* Time */
htsmsg_add_u32(m, "tvhtime_update_enabled", tvhtime_update_enabled);
Expand All @@ -498,7 +502,6 @@ extjs_config(http_connection_t *hc, const char *remain, void *opaque)

pthread_mutex_unlock(&global_lock);

if (!m) return HTTP_STATUS_BAD_REQUEST;
out = json_single_record(m, "config");

/* Save settings */
Expand Down

0 comments on commit cf8cf94

Please sign in to comment.