Skip to content
  • Yusuke Endoh's avatar
    cb14c4a5
    missing/setproctitle.c: remove nonsense NULL check · cb14c4a5
    Yusuke Endoh authored
    If fmt is NULL, ptitle is uninitialized and used.
    SETPROCTITLE(3bsd) says "If fmt is NULL, the process title is restored",
    but looks like the feature is not implemented in missing/setproctitle.c.
    At least the source code of ruby does not pass NULL to the function.
    So I assume this function requires non-NULL fmt.
    
    This issue was found by Coverity Scan.
    cb14c4a5
    missing/setproctitle.c: remove nonsense NULL check
    Yusuke Endoh authored
    If fmt is NULL, ptitle is uninitialized and used.
    SETPROCTITLE(3bsd) says "If fmt is NULL, the process title is restored",
    but looks like the feature is not implemented in missing/setproctitle.c.
    At least the source code of ruby does not pass NULL to the function.
    So I assume this function requires non-NULL fmt.
    
    This issue was found by Coverity Scan.
Loading