Browse Source

Fix return without value

master
Aitor 6 months ago
parent
commit
5c1521d340
  1. 5
      libpstat.c

5
libpstat.c

@ -116,7 +116,7 @@ char * pstat_get_binary_path_from_string(char *buffer, const char *pid_value)
}
if( !pstat_is_running( ps ) ) {
return;
return buffer;
}
if( !pstat_is_deleted( ps ) ) {
@ -138,7 +138,6 @@ char * pstat_get_binary_path_from_string(char *buffer, const char *pid_value)
char * pstat_get_binary_path_from_integer(char *buffer, pid_t pid)
{
pid_t pid = 0;
int rc = 0;
struct stat bin_stat;
@ -155,7 +154,7 @@ char * pstat_get_binary_path_from_integer(char *buffer, pid_t pid)
}
if( !pstat_is_running( ps ) ) {
return;
return buffer;
}
if( !pstat_is_deleted( ps ) ) {

Loading…
Cancel
Save