mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	Set an error in all failure cases. (#324332, Tim-Philipp Müller)
2005-12-17 Matthias Clasen <mclasen@redhat.com> * glib/goption.c (parse_short_option): Set an error in all failure cases. (#324332, Tim-Philipp Müller)
This commit is contained in:
		
				
					committed by
					
						
						Matthias Clasen
					
				
			
			
				
	
			
			
			
						parent
						
							9122d21e65
						
					
				
				
					commit
					23fd9cffdc
				
			@@ -1,3 +1,8 @@
 | 
			
		||||
2005-12-17  Matthias Clasen  <mclasen@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* glib/goption.c (parse_short_option): Set an error in all
 | 
			
		||||
	failure cases.  (#324332, Tim-Philipp Müller)
 | 
			
		||||
 | 
			
		||||
2005-12-17  Sebastian Wilhelmi  <seppi@seppi.de>
 | 
			
		||||
 | 
			
		||||
	* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,8 @@
 | 
			
		||||
2005-12-17  Matthias Clasen  <mclasen@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* glib/goption.c (parse_short_option): Set an error in all
 | 
			
		||||
	failure cases.  (#324332, Tim-Philipp Müller)
 | 
			
		||||
 | 
			
		||||
2005-12-17  Sebastian Wilhelmi  <seppi@seppi.de>
 | 
			
		||||
 | 
			
		||||
	* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,8 @@
 | 
			
		||||
2005-12-17  Matthias Clasen  <mclasen@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* glib/goption.c (parse_short_option): Set an error in all
 | 
			
		||||
	failure cases.  (#324332, Tim-Philipp Müller)
 | 
			
		||||
 | 
			
		||||
2005-12-17  Sebastian Wilhelmi  <seppi@seppi.de>
 | 
			
		||||
 | 
			
		||||
	* glib/gatomic.c: Fix memory barrier position in g_atomic_int_get
 | 
			
		||||
 
 | 
			
		||||
@@ -921,9 +921,11 @@ parse_short_option (GOptionContext *context,
 | 
			
		||||
	    {
 | 
			
		||||
	      if (*new_index > index)
 | 
			
		||||
		{
 | 
			
		||||
		  g_warning ("FIXME: figure out the correct error here");
 | 
			
		||||
 | 
			
		||||
		  return FALSE;
 | 
			
		||||
                  g_set_error (error,
 | 
			
		||||
                               G_OPTION_ERROR, G_OPTION_ERROR_FAILED,
 | 
			
		||||
                               _("Error parsing option %s"), option_name);
 | 
			
		||||
                  g_free (option_name);
 | 
			
		||||
                  return FALSE;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	      option_name = g_strdup_printf ("-%c", group->entries[j].short_name);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user