Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

devil fix bugs

  • Loading branch information...
commit e4266b626a10d865264206ae82d27f359f6a287a 1 parent 9177b25
@wxjeacen wxjeacen authored
Showing with 4 additions and 5 deletions.
  1. +1 −1  autogen.sh
  2. +2 −2 src/gui/gqqconfig.c
  3. +1 −2  src/libqq/qqlogin.c
View
2  autogen.sh
@@ -5,4 +5,4 @@ aclocal \
&& libtoolize --copy --force --automake \
&& autoreconf --install \
&& [ -d usr ] || mkdir usr \
-&& ./configure --enable-debug --prefix=/usr
+&& ./configure --enable-debug --prefix=`pwd`/usr
View
4 src/gui/gqqconfig.c
@@ -241,8 +241,8 @@ static void gqq_config_init(GQQConfig *self)
{
GString *cfgdir = g_string_new (g_get_home_dir ());
g_string_append (cfgdir, "/.gtkqq");
- if(!g_file_test(cfgdir->str, G_FILE_TEST_EXISTS
- && -1 == g_mkdir(cfgdir->str, 0777))){
+ if(!g_file_test(cfgdir->str, G_FILE_TEST_IS_DIR)
+ && -1 == g_mkdir(cfgdir->str, 0777)){
g_error("Create config dir %s error!(%s, %d)"
, cfgdir->str, __FILE__, __LINE__);
}
View
3  src/libqq/qqlogin.c
@@ -157,7 +157,6 @@ static gint get_vc_image(QQInfo *info)
}
gint ret = 0;
gchar params[500];
- gint res = 0;
Request *req = request_new();
Response *rps = NULL;
@@ -179,7 +178,7 @@ static gint get_vc_image(QQInfo *info)
}
send_request(con, req);
- res = rcv_response(con, &rps);
+ rcv_response(con, &rps);
close_con(con);
connection_free(con);
const gchar *retstatus = rps -> status -> str;
Please sign in to comment.
Something went wrong with that request. Please try again.