--- sys/dev/asmc/asmc.c 2008-11-22 14:39:53.000000000 +0800 +++ /var/current/mysrc/sys/dev/asmc/asmc.c 2008-11-24 12:46:16.000000000 +0800 @@ -254,6 +254,8 @@ char *model; model = getenv("smbios.system.product"); + if (model == NULL) + return (NULL); for (i = 0; asmc_models[i].smc_model; i++) { if (!strncmp(model, asmc_models[i].smc_model, strlen(model))) { freeenv(model);