cover null default val
authorMichael Wallner <mike@php.net>
Mon, 16 Apr 2018 13:22:00 +0000 (15:22 +0200)
committerMichael Wallner <mike@php.net>
Mon, 16 Apr 2018 13:22:00 +0000 (15:22 +0200)
src/types/impl_def_val.c

index c6778f9bf917716f3e6e0e5af139d69cb004eae1..c5bf7444a0ebb0e8e592f4989880b328dc32d3d8 100644 (file)
@@ -163,6 +163,9 @@ bool psi_impl_def_val_validate(struct psi_data *data,
 
 void psi_impl_def_val_dump(int fd, struct psi_impl_def_val *val) {
        switch (val->type) {
+       case PSI_T_NULL:
+               dprintf(fd, "NULL");
+               break;
        case PSI_T_TRUE:
                dprintf(fd, "true");
                break;