[geocode-glib] geoip-update: Handle blank option



commit 44a846b490a7f020373f3928f79f544c9cebc405
Author: Satabdi Das <satabdidas gmail com>
Date:   Sat May 4 18:01:26 2013 +0530

    geoip-update: Handle blank option
    
    if --dbpath option is not given, the updater should set the path
    to the databased to GEOIP_DATABASE_PATH
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699668

 geocode-glib/geocode-ip-server/geoip-update.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/geocode-glib/geocode-ip-server/geoip-update.c b/geocode-glib/geocode-ip-server/geoip-update.c
index 5d76433..508bb1d 100644
--- a/geocode-glib/geocode-ip-server/geoip-update.c
+++ b/geocode-glib/geocode-ip-server/geoip-update.c
@@ -150,7 +150,7 @@ main (int argc, char **argv)
 {
 
         GError *error = NULL;
-        const char *path, *dbpath;
+        const char *path, *dbpath = NULL;
         guint i;
         GOptionContext *context;
         const GOptionEntry entries[] = {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]