@@ -368,7 +368,7 @@ update_user_table(THD *thd, TABLE *table,
368
368
}
369
369
370
370
table->use_all_columns ();
371
- DBUG_ASSERT (host != ' \0 ' );
371
+ DBUG_ASSERT (host != NULL );
372
372
table->field [MYSQL_USER_FIELD_HOST]->store (host, strlen (host),
373
373
system_charset_info);
374
374
table->field [MYSQL_USER_FIELD_USER]->store (user, strlen (user),
@@ -485,7 +485,7 @@ int replace_user_table(THD *thd, TABLE *table, LEX_USER *combo,
485
485
}
486
486
487
487
table->use_all_columns ();
488
- DBUG_ASSERT (combo->host .str != ' \0 ' );
488
+ DBUG_ASSERT (combo->host .str != NULL );
489
489
table->field [MYSQL_USER_FIELD_HOST]->store (combo->host .str ,combo->host .length ,
490
490
system_charset_info);
491
491
table->field [MYSQL_USER_FIELD_USER]->store (combo->user .str ,combo->user .length ,
@@ -576,7 +576,7 @@ int replace_user_table(THD *thd, TABLE *table, LEX_USER *combo,
576
576
577
577
old_row_exists = 0 ;
578
578
restore_record (table,s->default_values );
579
- DBUG_ASSERT (combo->host .str != ' \0 ' );
579
+ DBUG_ASSERT (combo->host .str != NULL );
580
580
table->field [MYSQL_USER_FIELD_HOST]->store (combo->host .str ,combo->host .length ,
581
581
system_charset_info);
582
582
table->field [MYSQL_USER_FIELD_USER]->store (combo->user .str ,combo->user .length ,
0 commit comments