summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
db070f1)
fixes false positive warning from "-Wconditional-uninitialized in clang"
Signed-off by: Rosen Penev <rosenp@gmail.com>
static bool
dt_type_min(struct dt_state *s, int nargs)
{
static bool
dt_type_min(struct dt_state *s, int nargs)
{
char *e;
if (dt_getint(0, min))
char *e;
if (dt_getint(0, min))
static bool
dt_type_max(struct dt_state *s, int nargs)
{
static bool
dt_type_max(struct dt_state *s, int nargs)
{
char *e;
if (dt_getint(0, max))
char *e;
if (dt_getint(0, max))
static bool
dt_type_range(struct dt_state *s, int nargs)
{
static bool
dt_type_range(struct dt_state *s, int nargs)
{
+ int n;
+ int min = 0;
+ int max = 0;
char *e;
if (dt_getint(0, min) && dt_getint(1, max))
char *e;
if (dt_getint(0, min) && dt_getint(1, max))
static bool
dt_type_minlen(struct dt_state *s, int nargs)
{
static bool
dt_type_minlen(struct dt_state *s, int nargs)
{
if (dt_getint(0, min))
return (strlen(s->value) >= min);
if (dt_getint(0, min))
return (strlen(s->value) >= min);
static bool
dt_type_maxlen(struct dt_state *s, int nargs)
{
static bool
dt_type_maxlen(struct dt_state *s, int nargs)
{
if (dt_getint(0, max))
return (strlen(s->value) <= max);
if (dt_getint(0, max))
return (strlen(s->value) <= max);
static bool
dt_type_rangelen(struct dt_state *s, int nargs)
{
static bool
dt_type_rangelen(struct dt_state *s, int nargs)
{
+ int min = 0;
+ int max = 0;
int len = strlen(s->value);
if (dt_getint(0, min) && dt_getint(1, max))
int len = strlen(s->value);
if (dt_getint(0, min) && dt_getint(1, max))
static bool
dt_type_string(struct dt_state *s, int nargs)
{
static bool
dt_type_string(struct dt_state *s, int nargs)
{
+ int min = 0;
+ int max = 0;
int len = strlen(s->value);
if (dt_getint(0, min) && (len < min))
int len = strlen(s->value);
if (dt_getint(0, min) && (len < min))
static bool
dt_type_hexstring(struct dt_state *s, int nargs)
{
static bool
dt_type_hexstring(struct dt_state *s, int nargs)
{
+ int min = 0;
+ int max = 0;
int len = strlen(s->value);
const char *p;
int len = strlen(s->value);
const char *p;