• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revision08fd3ba492333d94256929ccf52d7eebf9eca134 (tree)
Zeit2013-06-19 15:26:05
AutorAustin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

va_parseConfig: still need to check env_value

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)

Ändern Zusammenfassung

Diff

--- a/va/va.c
+++ b/va/va.c
@@ -88,7 +88,8 @@ int va_parseConfig(char *env, char *env_value)
8888 /* no setting in config file, use env setting */
8989 value = getenv(env);
9090 if (value) {
91- strncpy(env_value, value, 1024);
91+ if (env_value)
92+ strncpy(env_value, value, 1024);
9293 return 0;
9394 }
9495