Skip to content

Commit 572fb3b

Browse files
committed
Missed field initialization found by copilot.
1 parent 3f63fd8 commit 572fb3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/include/pcl/features/shot_lrf_omp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace pcl
105105
computeFeature (PointCloudOut &output) override;
106106

107107
/** \brief The number of threads the scheduler should use. */
108-
unsigned int num_threads_;
108+
unsigned int num_threads_{1};
109109

110110
};
111111
}

features/include/pcl/features/shot_omp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ namespace pcl
206206
initCompute () override;
207207

208208
/** \brief The number of threads the scheduler should use. */
209-
unsigned int num_threads_;
209+
unsigned int num_threads_{1};
210210
};
211211

212212
}

0 commit comments

Comments
 (0)