Skip to content

Commit

Permalink
Tests: automount segfault fix
Browse files Browse the repository at this point in the history
C++ code compilation error due to the return value from void function
. Adding 'return NULL'

Reviewed-by: Anuj Borah <[email protected]>
  • Loading branch information
shridhargadekar authored and jakub-vavra-cz committed Jun 12, 2024
1 parent 48e6812 commit 5ed2e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/multihost/alltests/script/a1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ void *tr(void *) {
char buf[8192];
struct passwd *res;

getpwuid_r(getuid(), &pwd, buf, sizeof(buf), &res); }
getpwuid_r(getuid(), &pwd, buf, sizeof(buf), &res);
return NULL; }

#define NTH 100
pthread_t t[NTH];
Expand Down

0 comments on commit 5ed2e37

Please sign in to comment.