fix temporary printing of "(null)" for mpd vars
authorPhil Sutter <phil@nwl.cc>
Mon, 23 Mar 2009 22:42:59 +0000 (23:42 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 23 Mar 2009 22:46:10 +0000 (23:46 +0100)
commit363bed34acf37c315ba29cbefe817f12eb981086
treec97611ce3f459f92df7bc89e87a0ad52f10e21e5
parent4c77eed1c3f8afe2d37885bff75cadcd9fe3addb
fix temporary printing of "(null)" for mpd vars

To minimise the chance of printing variables in an undefined state, call
free() as late as possible (i.e., right before strdup()'ing the new
value).
src/mpd.c