From: wolf Date: Wed, 9 Oct 2002 14:27:26 +0000 (+0000) Subject: When a null pointer constant is requested, use NULL instead of X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf757c8485446e139e4dbb89852bea3457e6b66;p=dealii-svn.git When a null pointer constant is requested, use NULL instead of 0. (Here it does not matter, since there would be an auto-conversion, but well -- this goes to a variadic function, so not even try to pass an integer where a pointer is needed, after all they may be of different sizes, and there is no argument type conversion for variadic function arguments...) git-svn-id: https://svn.dealii.org/trunk@6622 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparse_direct.cc b/deal.II/lac/source/sparse_direct.cc index 05ee294eb0..9cb86ee283 100644 --- a/deal.II/lac/source/sparse_direct.cc +++ b/deal.II/lac/source/sparse_direct.cc @@ -583,7 +583,7 @@ SparseDirectMA27::initialize (const SparsityPattern &sp) // run the detached solver // slave instead const char * const program_name = DEAL_II_PATH"/lib/bin/detached_ma27"; - const char * const child_argv[] = { program_name, 0 }; + const char * const child_argv[] = { program_name, NULL }; execv(program_name, const_cast(child_argv)); // usually execv does not