summaryrefslogtreecommitdiffstats
path: root/src/uca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca.c')
-rw-r--r--src/uca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uca.c b/src/uca.c
index 0f02ce1..8cbfc17 100644
--- a/src/uca.c
+++ b/src/uca.c
@@ -141,9 +141,10 @@ struct uca_t *uca_init(const char *config_filename)
if (grabber != NULL)
grabber->next = NULL;
- /* Probe each camera that is configured */
i = 0;
struct uca_camera_t *current = NULL;
+ /* Probe each camera that is configured and append a found camera to the
+ * linked list. */
while (cam_inits[i] != NULL) {
struct uca_camera_t *cam = NULL;
uca_cam_init init = cam_inits[i];