Fix a bug in dynamic kernel loader. if an environment variable is not set, getenv returns nullptr. Check that before running strcmp.
Fix a bug in dynamic kernel loader.
if an environment variable is not set, getenv returns nullptr. Check that
before running strcmp.

PiperOrigin-RevId: 284646216
Change-Id: Icfc1c3f299e912e845e6a297fdf64055bfabf49c

freedomtan/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,sarvex/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,paolodedios/tensorflow,sarvex/tensorflow,annarev/tensorflow,xzturn/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,karllessard/tensorflow,renyi533/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,yongtang/tensorflow,karllessard/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,petewarden/tensorflow,yongtang/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,aldian/tensorflow,sarvex/tensorflow,annarev/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,karllessard/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,freedomtan/tensorflow,gunan/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,annarev/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,annarev/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,renyi533/tensorflow,jhseu/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,jhseu/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,gunan/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,gautam1858/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,annarev/tensorflow,annarev/tensorflow,renyi533/tensorflow,yongtang/tensorflow,petewarden/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,sarvex/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,aam-at/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,xzturn/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,petewarden/tensorflow,aam-at/tensorflow,karllessard/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,jhseu/tensorflow,petewarden/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,renyi533/tensorflow,petewarden/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,xzturn/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,sarvex/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,renyi533/tensorflow,annarev/tensorflow,petewarden/tensorflow,renyi533/tensorflow,renyi533/tensorflow,aldian/tensorflow,gunan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,renyi533/tensorflow