Disable environment-based completion in kurlcompletion on openbsd

pull/16/head
François Andriot 10 years ago committed by Slávek Banko
parent 9c7a8637ed
commit 78a66b11dd

@ -778,10 +778,15 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
// Environment variables
//
#if !defined(__OpenBSD__)
extern char **environ; // Array of environment variables
#endif
bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
{
#if defined(__OpenBSD__)
return false;
#else
if ( url.file().at(0) != '$' )
return false;
@ -816,6 +821,7 @@ bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
*match = finished();
return true;
#endif
}
//////////////////////////////////////////////////

Loading…
Cancel
Save