fix segfault on %Rb token

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23798 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-11-30 02:16:36 +00:00
parent a2d8212a84
commit 85bcd1eaf7

View file

@ -1122,8 +1122,8 @@ const char *get_token_value(struct gui_wps *gwps,
break;
}
#endif
*intval = global_settings.mp3_enc_config.bitrate+1;
}
*intval = global_settings.mp3_enc_config.bitrate+1;
snprintf(buf, buf_size, "%d", global_settings.mp3_enc_config.bitrate+1);
return buf;
}