If you were trading salary for equity and the startup fails you're out that. You're also out time which you could have been advancing at a different company.
However, because working at a startup is gambling, you have to treat it as such. If you can't live with losing out on salary you could've made at another job, you shouldn't work at a startup.