diff options
author | discomfitor <michael.blumenkrantz@gmail.com> | 2013-12-12 09:31:08 -0500 |
---|---|---|
committer | discomfitor <michael.blumenkrantz@gmail.com> | 2013-12-12 09:31:08 -0500 |
commit | 0f46b8d7ec388a17206d6f9434b033603ab04190 (patch) | |
tree | 04c376195ced454399be1a31a1cf89cb078d4bd8 | |
parent | 5a549c8e97ee8f663f0a63dc499acdec93f777f1 (diff) |
fix ecore-x shadow warning
-rw-r--r-- | src/lib/ecore_x/xlib/ecore_x_selection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_selection.c b/src/lib/ecore_x/xlib/ecore_x_selection.c index 13a24fcfc..6e38fcf52 100644 --- a/src/lib/ecore_x/xlib/ecore_x_selection.c +++ b/src/lib/ecore_x/xlib/ecore_x_selection.c @@ -599,11 +599,11 @@ ecore_x_selection_converter_text(char *target, &text_prop) == Success) { int bufsize = strlen((char *)text_prop.value); - char *s = malloc(bufsize + 1); - if (!s) return EINA_FALSE; - *data_ret = s; - memcpy(s, text_prop.value, bufsize); - s[bufsize] = 0; + char *str = malloc(bufsize + 1); + if (!str) return EINA_FALSE; + *data_ret = str; + memcpy(str, text_prop.value, bufsize); + str[bufsize] = 0; *size_ret = bufsize; XFree(text_prop.value); return EINA_TRUE; |