]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
When a null pointer constant is requested, use NULL instead of
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 9 Oct 2002 14:27:26 +0000 (14:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 9 Oct 2002 14:27:26 +0000 (14:27 +0000)
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

deal.II/lac/source/sparse_direct.cc

index 05ee294eb0dc1a951aef470e18e086c5797c5bc3..9cb86ee283347b737b1d143c853911f9b7eec2e1 100644 (file)
@@ -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<char * const *>(child_argv));
 
                                            // usually execv does not

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.