diff
+ if (sm_alternate != NULL) {
    // Code that dereferences sm_alternate
+ }
