comparison libaudacious/rcfile.c @ 1769:8a926dec916f trunk

[svn] - parse equals correctly. Patch submitted by: TiCPU.
author nenolod
date Mon, 02 Oct 2006 03:35:09 -0700
parents 705d4c089fce
children a55ad33d882e
comparison
equal deleted inserted replaced
1768:def887eae029 1769:8a926dec916f
98 } 98 }
99 } 99 }
100 else if (lines[i][0] != '#' && section) { 100 else if (lines[i][0] != '#' && section) {
101 if ((tmp = strchr(lines[i], '='))) { 101 if ((tmp = strchr(lines[i], '='))) {
102 gchar **frags; 102 gchar **frags;
103 frags = g_strsplit(lines[i], "=", 0); 103 frags = g_strsplit(lines[i], "=", 2);
104 if (strlen(frags[1]) > 0) { 104 if (strlen(frags[1]) > 0) {
105 bmp_rcfile_create_string(section, frags[0], frags[1]); 105 bmp_rcfile_create_string(section, frags[0], frags[1]);
106 }; 106 };
107 g_strfreev(frags); 107 g_strfreev(frags);
108 } 108 }