validation: fix bogus tests so they don't cause segfaults
commit6d45b3e9d4a23a4ab5112af4e03bcf02fa3526a3
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 16 Feb 2013 15:47:14 +0000 (16 18:47 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 16 Feb 2013 15:47:14 +0000 (16 18:47 +0300)
tree861e988c75bb6ab160888e726c829b35ff844a34
parent9eef54be2f3ab5f425438a7e3abd4038d73adb41
validation: fix bogus tests so they don't cause segfaults

I'm going to change the code, and it segfaults on these bogus tests. In
sm_macros.c the "x" variable wasn't declared.  In sm_null_deref.c the "d"
variable is supposed to be a pointer to a struct.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
validation/sm_macros.c
validation/sm_null_deref.c