Marin Ramesa, le Thu 05 Dec 2013 22:03:47 +0100, a écrit :
> Variable that keeps the panic string. Initialize to NULL, meaning
> that the initial condition is that there is no panic string.

Again, that's already initialized to 0.

> * kern/debug.c (panicstr): Initialize to NULL.
> 
> ---
>  kern/debug.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kern/debug.c b/kern/debug.c
> index bdc87e2..8cd3f02 100644
> --- a/kern/debug.c
> +++ b/kern/debug.c
> @@ -125,7 +125,7 @@ void Debugger(message)
>  boolean_t            panic_lock_initialized = FALSE;
>  decl_simple_lock_data(,      panic_lock)
>  
> -const char                   *panicstr;
> +const char                   *panicstr = NULL;
>  int                  paniccpu;
>  
>  void
> -- 
> 1.8.1.4
> 
> 

-- 
Samuel
"...[Linux's] capacity to talk via any medium except smoke signals."
(By Dr. Greg Wettstein, Roger Maris Cancer Center)

Reply via email to