projects
/
platform
/
upstream
/
libva.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
va_parseConfig: still need to check env_value
[platform/upstream/libva.git]
/
va
/
va.c
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;
}