X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Flet_func.h;h=63ebe323ef4f727ad480bd4deb58cd2eb1a3fad6;hp=8917a0c82f5cd44736f076e798570fde0e07ed49;hb=cffcbdd1df9f6d5dcf78f49a3d1b44cefe21b2f5;hpb=9bcb1df0786a8193d65949c857baaba2f4296e84 diff --git a/src/types/let_func.h b/src/types/let_func.h index 8917a0c..63ebe32 100644 --- a/src/types/let_func.h +++ b/src/types/let_func.h @@ -53,7 +53,7 @@ bool psi_let_func_validate(struct psi_data *data, struct psi_let_exp *exp, struc #include "marshal.h" static inline psi_marshal_let locate_let_func_fn(token_t type) { - psi_marshal_let let_fn = NULL; + psi_marshal_let let_fn; switch (type) { case PSI_T_BOOLVAL: let_fn = psi_let_boolval; break; @@ -66,6 +66,7 @@ static inline psi_marshal_let locate_let_func_fn(token_t type) { case PSI_T_ZVAL: let_fn = psi_let_zval; break; case PSI_T_VOID: let_fn = psi_let_void; break; case PSI_T_COUNT: let_fn = psi_let_count; break; + default: let_fn = NULL; break; } return let_fn; }