PKGBUILDs/extra/rarian/user-segfault.patch

15 lines
336 B
Diff
Raw Normal View History

2009-10-10 02:23:22 +00:00
--- util/rarian-sk-get-cl.cpp~ 2008-07-28 19:23:28.000000000 +0200
+++ util/rarian-sk-get-cl.cpp 2008-07-28 19:23:28.000000000 +0200
@@ -160,6 +160,11 @@
{
char *filename = NULL;
char *user = getenv ("USERNAME");
+
+ if (user == NULL) {
+ user = getenv ("USER");
+ }
+
char *basepath = NULL;
int i=0;
int last = 0;