summaryrefslogtreecommitdiff
path: root/src/lib/elm_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_helper.c')
-rw-r--r--src/lib/elm_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_helper.c b/src/lib/elm_helper.c
index 57a042353..a1aae3f4c 100644
--- a/src/lib/elm_helper.c
+++ b/src/lib/elm_helper.c
@@ -13,12 +13,12 @@ struct _Elm_Validator_Regexp
13}; 13};
14 14
15EAPI Elm_Validator_Regexp * 15EAPI Elm_Validator_Regexp *
16elm_validator_regexp_new(const char *pattern, const char *signal) 16elm_validator_regexp_new(const char *pattern, const char *sig)
17{ 17{
18 Elm_Validator_Regexp *validator; 18 Elm_Validator_Regexp *validator;
19 19
20 validator = calloc(1, sizeof(Elm_Validator_Regexp)); 20 validator = calloc(1, sizeof(Elm_Validator_Regexp));
21 validator->signal = eina_stringshare_add(signal ? signal : "default"); 21 validator->signal = eina_stringshare_add(sig ? sig : "default");
22 validator->status = regcomp(&validator->regex, pattern, REG_EXTENDED | REG_NOSUB) ? ELM_REG_BADPAT : ELM_REG_NOERROR; 22 validator->status = regcomp(&validator->regex, pattern, REG_EXTENDED | REG_NOSUB) ? ELM_REG_BADPAT : ELM_REG_NOERROR;
23 23
24 return validator; 24 return validator;