OSDN Git Service
(root)
/
android-x86
/
hardware-intel-common-libva.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f27e9dc
)
va_parseConfig: still need to check env_value
author
Austin Yuan
<shengquan.yuan@intel.com>
Thu, 27 Dec 2012 10:00:30 +0000
(18:00 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Wed, 19 Jun 2013 06:26:05 +0000
(14:26 +0800)
env_value may be NULL which means the caller doens't
care the value of the environment variable, just check
if it is set.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit
2e11d2273b2974a7d1959cbcaf8db5b8e9aedd9e
)
va/va.c
patch
|
blob
|
history
diff --git
a/va/va.c
b/va/va.c
index
6210112
..
8031092
100644
(file)
--- a/
va/va.c
+++ b/
va/va.c
@@
-88,7
+88,8
@@
int va_parseConfig(char *env, char *env_value)
/* no setting in config file, use env setting */
value = getenv(env);
if (value) {
- strncpy(env_value, value, 1024);
+ if (env_value)
+ strncpy(env_value, value, 1024);
return 0;
}