smp->ctx.a[0] = ctx;
}
- if (args) {
- if (args[0].type != ARGT_STR)
- return 0;
- name.ptr = args[0].data.str.area;
- name.len = args[0].data.str.data;
+ if (args[0].type != ARGT_STR)
+ return 0;
+ name.ptr = args[0].data.str.area;
+ name.len = args[0].data.str.data;
- if (args[1].type == ARGT_SINT)
- occ = args[1].data.sint;
- }
+ if (args[1].type == ARGT_SINT)
+ occ = args[1].data.sint;
if (!htx)
return 0;
if (!htx)
return 0;
- if (args && args->type == ARGT_STR) {
+ if (args->type == ARGT_STR) {
name.ptr = args->data.str.area;
name.len = args->data.str.data;
} else {
if (!htx)
return 0;
- if (args && args->type == ARGT_STR)
+ if (args->type == ARGT_STR)
del = *args[0].data.str.area;
temp = get_trash_chunk();
smp->ctx.a[0] = ctx;
}
- if (args) {
- if (args[0].type != ARGT_STR)
- return 0;
- name.ptr = args[0].data.str.area;
- name.len = args[0].data.str.data;
+ if (args[0].type != ARGT_STR)
+ return 0;
+ name.ptr = args[0].data.str.area;
+ name.len = args[0].data.str.data;
- if (args[1].type == ARGT_SINT)
- occ = args[1].data.sint;
- }
+ if (args[1].type == ARGT_SINT)
+ occ = args[1].data.sint;
if (!htx)
return 0;
if (!htx)
return 0;
- if (args && args->type == ARGT_STR) {
+ if (args->type == ARGT_STR) {
name.ptr = args->data.str.area;
name.len = args->data.str.data;
} else {
struct channel *chn = SMP_REQ_CHN(smp);
struct htx *htx = smp_prefetch_htx(smp, chn, NULL, 1);
- if (!args || args->type != ARGT_USR)
+ if (args->type != ARGT_USR)
return 0;
if (!htx)
struct channel *chn = SMP_REQ_CHN(smp);
struct htx *htx = smp_prefetch_htx(smp, chn, NULL, 1);
- if (!args || args->type != ARGT_USR)
+ if (args->type != ARGT_USR)
return 0;
if (!htx)
struct proxy *fe;
int idx;
- if (!args || args->type != ARGT_SINT)
+ if (args->type != ARGT_SINT)
return 0;
if (!smp->strm)
struct proxy *fe;
int idx;
- if (!args || args->type != ARGT_SINT)
+ if (args->type != ARGT_SINT)
return 0;
if (!smp->strm)
size_t cook_l = 0;
int found = 0;
- if (args && args->type == ARGT_STR) {
+ if (args->type == ARGT_STR) {
cook = args->data.str.area;
cook_l = args->data.str.data;
}
size_t cook_l = 0;
int cnt;
- if (args && args->type == ARGT_STR){
+ if (args->type == ARGT_STR){
cook = args->data.str.area;
cook_l = args->data.str.data;
}
const char *name;
int name_len;
- if (!args ||
- (args[0].type && args[0].type != ARGT_STR) ||
+ if ((args[0].type && args[0].type != ARGT_STR) ||
(args[1].type && args[1].type != ARGT_STR))
return 0;
const char *name;
int name_len;
- if (!args || (args[0].type && args[0].type != ARGT_STR))
+ if (args[0].type && args[0].type != ARGT_STR)
return 0;
name = "";