aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-05 20:31:56 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-05 20:31:56 -0700
commit9c11f7dbdd3a0435bbc370f3b37bcc80960f74e7 (patch)
tree739a302e238e114b97f8e656447a259bd62d635c
parent8a2306146149d4d7915ed1346a7dbd908fb1048f (diff)
downloadmpd-9c11f7dbdd3a0435bbc370f3b37bcc80960f74e7.tar.gz
mpd-9c11f7dbdd3a0435bbc370f3b37bcc80960f74e7.tar.xz
mpd-9c11f7dbdd3a0435bbc370f3b37bcc80960f74e7.zip
dbUtils: remove C99 initializer
Upgrading a toolchain is still a nasty operation and they're never easy to build, so don't force people to upgrade from their old compilers (especially since some people are still stuck with Linux 2.4 and gcc 2.95).
-rw-r--r--src/dbUtils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 4cb3edcca..246d27385 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -210,9 +210,8 @@ int addAllIn(const char *name)
int addAllInToStoredPlaylist(const char *name, const char *utf8file)
{
- struct add_data data = {
- .path = utf8file,
- };
+ struct add_data data;
+ data.path = utf8file;
return traverseAllIn(name, directoryAddSongToStoredPlaylist, NULL,
&data);