unsigned int _is_started:1;
};
-static struct lms_db_cache _cache = {0, NULL};
+static struct lms_db_cache _cache = { };
static int
_db_create(sqlite3 *db, const char *name, const char *sql)
unsigned int _is_started:1;
};
-static struct lms_db_cache _cache = {0, NULL};
+static struct lms_db_cache _cache = { };
static int
_db_table_updater_images_0(sqlite3 *db, const char *table, unsigned int current_version, int is_last_run) {
unsigned int _is_started:1;
};
-static struct lms_db_cache _cache = {0, NULL};
+static struct lms_db_cache _cache = { };
static int
_db_table_updater_playlists_0(sqlite3 *db, const char *table, unsigned int current_version, int is_last_run) {
unsigned int _is_started:1;
};
-static struct lms_db_cache _cache = {0, NULL};
+static struct lms_db_cache _cache = { };
static int
_db_table_updater_videos_0(sqlite3 *db, const char *table, unsigned int current_version, int is_last_run) {
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_audio_info info = {0};
+ struct lms_audio_info info = { };
int r;
long ext_idx;
return 1;
if (artist_priorities[index] > info->cur_artist_priority) {
- struct lms_string_size artist = {0};
+ struct lms_string_size artist = { };
_get_id3v2_frame_info(frame_data, frame_size, &artist, cs_conv, 1);
if (artist.str) {
_get_id3v2_genre(const char *frame_data, unsigned int frame_size, struct lms_string_size *out, lms_charset_conv_t *cs_conv)
{
unsigned int i, is_number;
- struct lms_string_size genre = {0};
+ struct lms_string_size genre = { };
_get_id3v2_frame_info(frame_data, frame_size, &genre, cs_conv, 1);
if (!genre.str)
static void
_get_id3v2_trackno(const char *frame_data, unsigned int frame_size, struct id3_info *info, lms_charset_conv_t *cs_conv)
{
- struct lms_string_size trackno = {0};
+ struct lms_string_size trackno = { };
_get_id3v2_frame_info(frame_data, frame_size, &trackno, cs_conv, 0);
if (!trackno.str)
_exif_datetime_get(int fd, int offset)
{
char buf[20];
- struct tm tm = {0};
+ struct tm tm = { };
if (lseek(fd, offset, SEEK_SET) == -1) {
perror("lseek");
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_image_info info = {0};
+ struct lms_image_info info = { };
int fd, type, len, r;
fd = open(finfo->path, O_RDONLY);
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_playlist_info info = {0};
+ struct lms_playlist_info info = { };
int fd, r;
long ext_idx;
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_audio_info info = {0};
+ struct lms_audio_info info = { };
int r;
r = _parse_ogg(finfo->path, &info);
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_playlist_info info = {0};
+ struct lms_playlist_info info = { };
int fd, r;
long ext_idx;
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_image_info info = {0};
+ struct lms_image_info info = { };
int fd, r;
fd = open(finfo->path, O_RDONLY);
static int
_parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_info *finfo, void *match)
{
- struct lms_video_info info = {0};
+ struct lms_video_info info = { };
int r;
long ext_idx;