diff --git a/build.sh b/build.sh
index 6fc115ac8945f263dffb70c657ba611705bb3255..fce545abd0c884609061a6f65c0d75c45dc2663d 100755
--- a/build.sh
+++ b/build.sh
@@ -85,7 +85,7 @@ if [ x"$comp_type" == x"full" ]; then
         install_options="-s"
 elif [ x"$comp_type" == x"intel" ]; then
         install_options=" "
-elif [ x"comp_type" == x"asan" ]; then
+elif [ x"$comp_type" == x"asan" ]; then
 	foward_options="$foward_options --enable-asan"
 else
         install_options="-s -m"