mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-09 11:03:41 +00:00
fix MISRA C"Literal zero used in pointer context"
MISRC C required pointer to zero should be replace with NULL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
This commit is contained in:
@@ -123,7 +123,7 @@ static const char *get_flags(const char *s, int *flags)
|
||||
* found
|
||||
*/
|
||||
pos = strchr(flagchars, *s);
|
||||
if (pos == 0)
|
||||
if (pos == NULL)
|
||||
break;
|
||||
|
||||
/* apply matching flags and continue with the next character */
|
||||
@@ -214,7 +214,7 @@ static int format_number(struct print_param *param)
|
||||
return res;
|
||||
|
||||
/* invalidate prefix */
|
||||
param->vars.prefix = 0;
|
||||
param->vars.prefix = NULL;
|
||||
param->vars.prefixlen = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user