projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce561b
)
icd: Dont follow next twice in for loop
author
Tony Barbour
<tony@LunarG.com>
Wed, 8 Apr 2015 15:13:39 +0000
(09:13 -0600)
committer
Chia-I Wu
<olv@lunarg.com>
Thu, 16 Apr 2015 09:33:24 +0000
(17:33 +0800)
icd/common/icd-instance.c
patch
|
blob
|
history
diff --git
a/icd/common/icd-instance.c
b/icd/common/icd-instance.c
index
2311b6c
..
d54e572
100644
(file)
--- a/
icd/common/icd-instance.c
+++ b/
icd/common/icd-instance.c
@@
-103,7
+103,7
@@
void icd_instance_destroy(struct icd_instance *instance)
{
struct icd_instance_logger *logger;
- for (logger = instance->loggers; logger;
logger = logger->next
) {
+ for (logger = instance->loggers; logger; ) {
struct icd_instance_logger *next = logger->next;
icd_instance_free(instance, logger);