projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb60713
)
Fix issue detected by static analysis tool
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Wed, 3 Jan 2024 07:12:11 +0000
(16:12 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Wed, 3 Jan 2024 07:12:11 +0000
(16:12 +0900)
Change-Id: Iaebabbf2a7ee68693cf87c617ca698b8f54bf247
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
test/compose.c
patch
|
blob
|
history
diff --git
a/test/compose.c
b/test/compose.c
index
8c633d7
..
4f3ae17
100644
(file)
--- a/
test/compose.c
+++ b/
test/compose.c
@@
-715,7
+715,8
@@
main(int argc, char *argv[])
#ifdef __linux__
const char *srcdir = getenv("top_srcdir");
clearenv();
- setenv("top_srcdir", srcdir, 1);
+ if (srcdir)
+ setenv("top_srcdir", srcdir, 1);
#else
unsetenv("XCOMPOSEFILE");
unsetenv("XDG_CONFIG_HOME");